FIR: fix false positives of INNER_CLASS_OF_GENERIC_THROWABLE_SUBCLASS

#KT-49129 Fixed
This commit is contained in:
Mikhail Glukhikh
2021-10-12 15:27:10 +03:00
committed by TeamCityServer
parent e3b92fe5f3
commit 31db76da56
6 changed files with 108 additions and 5 deletions
@@ -0,0 +1,19 @@
// 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() {}
}
}
}