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

17 lines
179 B
Kotlin

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