mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
9 lines
107 B
Kotlin
9 lines
107 B
Kotlin
// From KT-1648
|
|
trait A {
|
|
val method:() -> Unit?
|
|
}
|
|
|
|
fun some() : A {
|
|
return object : A {<caret>}
|
|
}
|