Skipping error types when processing alternative signatures.
This commit is contained in:
+4
@@ -101,7 +101,11 @@ public class TypeTransformingVisitor extends JetVisitor<JetType, Void> {
|
|||||||
return visitCommonType(DescriptorUtils.getFQName(classDescriptor).toSafe().asString(), type);
|
return visitCommonType(DescriptorUtils.getFQName(classDescriptor).toSafe().asString(), type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NotNull
|
||||||
private JetType visitCommonType(@NotNull String qualifiedName, @NotNull JetTypeElement type) {
|
private JetType visitCommonType(@NotNull String qualifiedName, @NotNull JetTypeElement type) {
|
||||||
|
if (originalType.isError()) {
|
||||||
|
return originalType;
|
||||||
|
}
|
||||||
TypeConstructor originalTypeConstructor = originalType.getConstructor();
|
TypeConstructor originalTypeConstructor = originalType.getConstructor();
|
||||||
ClassifierDescriptor declarationDescriptor = originalTypeConstructor.getDeclarationDescriptor();
|
ClassifierDescriptor declarationDescriptor = originalTypeConstructor.getDeclarationDescriptor();
|
||||||
assert declarationDescriptor != null;
|
assert declarationDescriptor != null;
|
||||||
|
|||||||
Reference in New Issue
Block a user