31db76da56
#KT-49129 Fixed
20 lines
392 B
Kotlin
Vendored
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() {}
|
|
}
|
|
}
|
|
}
|