mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
13 lines
275 B
Plaintext
13 lines
275 B
Plaintext
// From KT-1648
|
|
trait A {
|
|
val method:() -> Unit?
|
|
}
|
|
|
|
fun some() : A {
|
|
return object : A {
|
|
override val method: () -> Unit?
|
|
get() = <selection><caret>throw UnsupportedOperationException()</selection>
|
|
}
|
|
}
|
|
|
|
// TODO: need better selection and caret |