KT-14071 Type alias cannot be used as a qualifier for super
Use corresponding class for type alias in super qualifier resolution.
This commit is contained in:
+4
@@ -451,6 +451,10 @@ public class BasicExpressionTypingVisitor extends ExpressionTypingVisitor {
|
||||
supertype = components.typeResolver.resolveType(context.scope, superTypeQualifier, context.trace, true);
|
||||
}
|
||||
|
||||
if (classifierCandidate instanceof TypeAliasDescriptor) {
|
||||
classifierCandidate = ((TypeAliasDescriptor) classifierCandidate).getClassDescriptor();
|
||||
}
|
||||
|
||||
if (supertype != null) {
|
||||
if (supertypes.contains(supertype)) {
|
||||
result = supertype;
|
||||
|
||||
Reference in New Issue
Block a user