Files
2021-10-15 01:24:47 +03:00

20 lines
392 B
Kotlin
Vendored

// See KT-49129
class Generic<T> {
companion object {
fun foo() {
val x = object : Exception() {}
}
}
class Nested {
fun foo() {
val x = object : Exception() {}
}
}
inner class Inner {
fun foo() {
val x = <!INNER_CLASS_OF_GENERIC_THROWABLE_SUBCLASS!>object<!> : Exception() {}
}
}
}