Files
openide/plugins/kotlin/scripting-support/testData/scratch/klass.repl.after
Natalia Selezneva ef811c9c69 Configuration: move scratch tests to separate module
GitOrigin-RevId: b169ff2eeb14693bbce4a547e8e974d41a4196a7
2019-10-08 15:02:32 +03:00

17 lines
282 B
Plaintext

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