Files
kotlin/compiler/testData/asJava/script/ide/InnerClasses.kts
Natalia Selezneva 66a6713577 Tests: extract scripts testdata for light classes in ide to separate test
For compiled scripts there is AbstractIdeCompiledLightClassTest
For now there is a difference in light classes constructed from source and from compiled class (missing baseClass and constructor parameter for script class)
But it doesn't affect users because calling script class from Java isn't supported yet

testData for AbstractIdeLightClassTest and AbstractIdeLightClassForScriptTest can be merged when the difference will be fixed
2019-09-30 09:47:20 +03:00

15 lines
182 B
Kotlin
Vendored

// InnerClasses
class Bar(val a: Int) {
val b: Int = { 0 }()
fun getAPlusB() = a + b
class Baz {
fun doSomething() {
}
}
}
// LAZINESS:NoLaziness