Refactor and improve class literal type checking code

Infer something sensible instead of error types when an error is reported, such
as absence of a type argument for Array or presence of type arguments for other
types
This commit is contained in:
Alexander Udalov
2016-04-21 18:39:05 +03:00
parent 1b79770121
commit ca7e4496c7
11 changed files with 91 additions and 58 deletions
@@ -1,10 +1,11 @@
package
public val a1: [ERROR : Unresolved class]
public val a2: [ERROR : Unresolved class]
public val l1: [ERROR : Unresolved class]
public val l2: [ERROR : Unresolved class]
public val a1: kotlin.reflect.KClass<A?>
public val a2: kotlin.reflect.KClass<A?>
public val l1: kotlin.reflect.KClass<kotlin.collections.List<kotlin.String>?>
public val l2: kotlin.reflect.KClass<kotlin.collections.List<*>?>
public val m: [ERROR : Unresolved class]
public inline fun </*0*/ reified T : kotlin.Any> bar(): kotlin.Unit
public fun </*0*/ T : kotlin.Any> foo(): kotlin.Unit
public final class A {