Fix exception from ::class literals on unresolved classes

This commit is contained in:
Alexander Udalov
2015-03-12 21:42:01 +03:00
parent e448f40756
commit e5d5b49ce2
7 changed files with 40 additions and 12 deletions
@@ -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