mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
Includes changes to decompiled text Old syntax is used in builtins and project code for now
12 lines
345 B
Kotlin
12 lines
345 B
Kotlin
open class Test {
|
|
default object {
|
|
fun testStatic(ic: InnerClass): NotInnerClass = NotInnerClass(ic.value)
|
|
}
|
|
|
|
fun test(): InnerClass = InnerClass(150)
|
|
|
|
inner open class InnerClass(val value: Int)
|
|
open class NotInnerClass(val value: Int)
|
|
}
|
|
|
|
fun box() = if (Test.testStatic(Test().test()).value == 150) "OK" else "FAIL" |