mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-22 06:20:54 +07:00
17 lines
179 B
Kotlin
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()
|