Files
kotlin/compiler/testData/loadJava/compiledKotlin/classObject/Delegation.kt
Pavel V. Talanov 72bdacb074 Add explicit return types to several test data files so that AST access is not needed
Test cases are chosen so that addition/removal of explicit type will not interfere with the original purpose of the test
2014-05-21 15:40:08 +04:00

12 lines
124 B
Kotlin

package test
trait T {
fun foo(): Int
}
class A : T {
override fun foo(): Int = 42
class object : T by A()
}