Files
kotlin-fork/idea/testData/scratch/klass.kts
T
2018-02-01 10:21:55 +03:00

15 lines
152 B
Kotlin
Vendored

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