[FIR] Introduce ConeDynamicType
This commit is contained in:
+1
-3
@@ -45,9 +45,7 @@ object FirTopLevelTypeAliasChecker : FirTypeAliasChecker() {
|
||||
val expandedTypeRef = declaration.expandedTypeRef
|
||||
val fullyExpandedType = expandedTypeRef.coneType.fullyExpandedType(context.session)
|
||||
|
||||
if (containsTypeParameter(fullyExpandedType) ||
|
||||
fullyExpandedType is ConeErrorType && fullyExpandedType.diagnostic is ConeUnsupportedDynamicType
|
||||
) {
|
||||
if (containsTypeParameter(fullyExpandedType) || fullyExpandedType is ConeDynamicType) {
|
||||
reporter.reportOn(
|
||||
declaration.expandedTypeRef.source,
|
||||
FirErrors.TYPEALIAS_SHOULD_EXPAND_TO_CLASS,
|
||||
|
||||
Reference in New Issue
Block a user