Files
kotlin-fork/plugins/uast-kotlin/testData/Anonymous.kt
T
2018-01-19 10:45:58 +03:00

12 lines
429 B
Kotlin
Vendored

import java.io.Closeable
import java.io.InputStream
fun foo() {
val runnable = object : Runnable { override fun run() {} }
runnable.run()
val runnable2 = Runnable { println() }
runnable2.run()
val closeableRunnable = object : Runnable, Closeable { override fun close() {} override fun run() {} }
val runnableIs = object : InputStream(), Runnable { override fun read(): Int = 0; override fun run() {} }
}