8e061c9ec1
#KT-12290 Fixed (cherry picked from commit 6274c6b)
26 lines
449 B
Plaintext
Vendored
26 lines
449 B
Plaintext
Vendored
// WITH_RUNTIME
|
|
// DISABLE-ERRORS
|
|
interface T<X> {
|
|
val foo: X
|
|
}
|
|
|
|
class U : T<String> {
|
|
override val foo: String
|
|
get() = throw UnsupportedOperationException()
|
|
|
|
}
|
|
|
|
class V : T<Int> {
|
|
override val foo: Int
|
|
get() = <caret><selection>throw UnsupportedOperationException()</selection>
|
|
|
|
}
|
|
|
|
class Z : T<Int> by V() {
|
|
|
|
}
|
|
|
|
class W : T<Boolean> {
|
|
override val foo: Boolean
|
|
get() = throw UnsupportedOperationException()
|
|
} |