Files
kotlin-fork/idea/testData/scratch/klass.repl.after
T
2018-05-24 15:07:37 +03:00

15 lines
224 B
Plaintext
Vendored

class MyClass {
fun foo() = 1
}
MyClass().foo() // RESULT: 1
interface I {
fun foo(): Int
}
val i = object: I {
override fun foo(): Int = 1
}
i.foo() // RESULT: 1