Files
kotlin-fork/compiler/testData/diagnostics/tests/constantEvaluator/constant/unresolvedReference.kt
T
Ivan Kylchik 5dbe81fd7f [FIR] Always expand a type before checking it in FirConstChecks
The issue appeared when we analyzed some typealias.
1. The typealias itself could be valid, but it could point
to an invalid type.
2. The typealias could point, for example, to an unsigned
type that must be handled in a special way

#KT-59894
2023-12-06 10:54:21 +00:00

10 lines
283 B
Kotlin
Vendored

// FIR_IDENTICAL
import kotlin.reflect.KClass
public annotation class Throws(vararg val exceptionClasses: KClass<out Throwable>)
typealias UEAlias = <!UNRESOLVED_REFERENCE!>UE<!>
@Throws(<!ANNOTATION_ARGUMENT_MUST_BE_CONST!>UEAlias::class<!>)
fun throwsTypealiasToUnresolved() {}