Fix exception from ::class literals on unresolved classes
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
fun foo() {}
|
||||
|
||||
class A {
|
||||
class A(val prop: Any) {
|
||||
fun baz() {}
|
||||
}
|
||||
|
||||
val bar = <!REFLECTION_TYPES_NOT_LOADED!>::<!>foo
|
||||
val quux = A<!REFLECTION_TYPES_NOT_LOADED!>::<!>baz
|
||||
val topLevelFun = <!REFLECTION_TYPES_NOT_LOADED!>::<!>foo
|
||||
val memberFun = A<!REFLECTION_TYPES_NOT_LOADED!>::<!>baz
|
||||
|
||||
val classLiteral = A<!REFLECTION_TYPES_NOT_LOADED!>::<!>class
|
||||
val property = A<!REFLECTION_TYPES_NOT_LOADED!>::<!>prop
|
||||
|
||||
@@ -1,11 +1,14 @@
|
||||
package
|
||||
package
|
||||
|
||||
internal val bar: [ERROR : Type for ::foo]
|
||||
internal val quux: [ERROR : Type for A::baz]
|
||||
internal val classLiteral: [ERROR : Unresolved class]
|
||||
internal val memberFun: [ERROR : Type for A::baz]
|
||||
internal val property: [ERROR : Type for A::prop]
|
||||
internal val topLevelFun: [ERROR : Type for ::foo]
|
||||
internal fun foo(): kotlin.Unit
|
||||
|
||||
internal final class A {
|
||||
public constructor A()
|
||||
public constructor A(/*0*/ prop: kotlin.Any)
|
||||
internal final val prop: kotlin.Any
|
||||
internal final fun baz(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
val u = <!UNRESOLVED_REFERENCE!>Unresolved<!>::class
|
||||
val g = <!UNRESOLVED_REFERENCE!>UnresolvedGeneric<!><<!UNRESOLVED_REFERENCE!>UnresolvedTypeArg<!>>::class
|
||||
@@ -0,0 +1,4 @@
|
||||
package
|
||||
|
||||
internal val g: [ERROR : Unresolved class]
|
||||
internal val u: [ERROR : Unresolved class]
|
||||
Reference in New Issue
Block a user