Introduce forceResolveLazyTypes into TypeResolutionContext

The main reason is to force type resolution when resolving
type arguments in class literal as annotation value argument:

@Ann(Array<String>::class) class Ann

`String` left unresolved unless this commit is applied.

Note, that currently forced calculations used only when bare types are allowed
as it's true for class literals resolution and currenlty it's enough.
This commit is contained in:
Denis Zharkov
2015-05-26 15:49:45 +03:00
parent f9556e584d
commit eb80764d21
4 changed files with 25 additions and 2 deletions
@@ -0,0 +1,5 @@
import kotlin.reflect.KClass
annotation class Ann(val value: KClass<*>)
@Ann(Array<<error descr="[UNRESOLVED_REFERENCE] Unresolved reference: String123">String123</error>>::class) class A