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:
@@ -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
|
||||
Reference in New Issue
Block a user