Gracefully handle erroneous super type during local type approximation

^KTIJ-23528 Fixed
This commit is contained in:
Jinseong Jeon
2022-11-09 23:13:34 -08:00
committed by Ilya Kirillov
parent f775778efa
commit c79d65536b
7 changed files with 44 additions and 4 deletions
@@ -0,0 +1,11 @@
fun box() {
class Foo {
fun foo() {
<expr>Bar()</expr>.unknown()
}
private inner class Bar: Unknown<Unit, Unit, Int>() {
override fun unknown() {}
}
}
}
@@ -0,0 +1,2 @@
KtType: Foo
PsiType: PsiType:Bar