mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-21 13:20:56 +07:00
17 lines
282 B
Plaintext
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
|