mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 15:51:01 +00:00
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
15 lines
182 B
Kotlin
Vendored
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 |