FIR: introduce ThrowableSubclassChecker

This commit is contained in:
eugenpolytechnic
2021-02-02 14:38:17 +03:00
committed by Mikhail Glukhikh
parent cd189c0812
commit a564f92eef
22 changed files with 209 additions and 90 deletions
@@ -0,0 +1,18 @@
class Test1<<!GENERIC_THROWABLE_SUBCLASS!>T<!>, B> : Exception() {
inner <!INNER_CLASS_OF_GENERIC_THROWABLE_SUBCLASS!>class Test2<!><<!GENERIC_THROWABLE_SUBCLASS!>S<!>> : Throwable()
class Test3 : NullPointerException()
object Test4 : Throwable() {}
}
class Test5<T, B> {
inner <!INNER_CLASS_OF_GENERIC_THROWABLE_SUBCLASS!>class Test6<!> : Exception()
fun foo() {
<!INNER_CLASS_OF_GENERIC_THROWABLE_SUBCLASS!>class Test7<!> : Throwable()
}
}
fun <Z> topLevelFun() {
<!INNER_CLASS_OF_GENERIC_THROWABLE_SUBCLASS!>class Test8<!> : Error()
val obj = <!INNER_CLASS_OF_GENERIC_THROWABLE_SUBCLASS{LT}!><!INNER_CLASS_OF_GENERIC_THROWABLE_SUBCLASS{PSI}!>object<!> : Throwable() {}<!>
}