mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 15:51:01 +00:00
20 lines
294 B
Kotlin
Vendored
20 lines
294 B
Kotlin
Vendored
annotation class AllOpen
|
|
|
|
@AllOpen
|
|
class Test {
|
|
val a = object : Runnable {
|
|
override fun run() {
|
|
1
|
|
}
|
|
}
|
|
|
|
fun b() {
|
|
object : Runnable {
|
|
override fun run() {
|
|
1
|
|
}
|
|
}
|
|
|
|
Runnable { 1 }.run()
|
|
}
|
|
} |