[FE 1.0] Don't fail with exception on unresolved type with type argument

^KT-50223 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2022-06-08 18:07:20 +02:00
committed by teamcity
parent 87dc1f7fde
commit 372879b8e7
8 changed files with 51 additions and 2 deletions
@@ -0,0 +1,7 @@
abstract class MyClass {
abstract fun <P1> foo(): (P1) -> <!UNRESOLVED_REFERENCE!>Unknown<String><!>
private fun callTryConvertConstant() {
<!UNRESOLVED_REFERENCE!>println<!>(foo<String>())
}
}
@@ -0,0 +1,7 @@
abstract class MyClass {
abstract fun <P1> foo(): (P1) -> <!UNRESOLVED_REFERENCE!>Unknown<!><String>
private fun callTryConvertConstant() {
<!UNRESOLVED_REFERENCE!>println<!>(foo<String>())
}
}
@@ -0,0 +1,10 @@
package
public abstract class MyClass {
public constructor MyClass()
private final fun callTryConvertConstant(): kotlin.Unit
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public abstract fun </*0*/ P1> foo(): (P1) -> [Error type: Unresolved type for Unknown<String>]<kotlin.String>
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}