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 |