Files
kotlin/compiler/testData/codegen/boxInline/anonymousObject/constructorVisibility.kt
2016-02-27 15:40:05 +03:00

24 lines
309 B
Kotlin
Vendored

// FILE: 1.kt
package test
interface Run {
fun run(): String
}
internal class A {
inline fun doSomething(): Run {
return object : Run {
override fun run(): String = "OK"
}
}
}
// FILE: 2.kt
import test.*
fun box(): String {
return A().doSomething().run()
}