Files
kotlin/compiler/testData/codegen/script/classLiteralInsideFunction.kts
Pavel V. Talanov bdc64f322c Add script codegen tests with package statements
Tests codegen annotating visitor
2015-11-19 22:57:03 +03:00

19 lines
296 B
Kotlin
Vendored

package script.long.name.inside.packag
interface I {
fun g(): I
}
fun f(): I {
return object : I {
override fun g() = object : I {
override fun g(): I = this
override fun toString() = "OK"
}
}
}
val rv = f().g().g().g()
// expected: rv: OK