summaryrefslogtreecommitdiff
path: root/src/parser/contexts.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/contexts.h')
-rw-r--r--src/parser/contexts.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser/contexts.h b/src/parser/contexts.h
index 4acfc981a..6dabfca3d 100644
--- a/src/parser/contexts.h
+++ b/src/parser/contexts.h
@@ -1119,7 +1119,7 @@ struct ParseImplicitTypeDefsCtx : TypeParserCtx<ParseImplicitTypeDefsCtx> {
types(types), implicitTypes(implicitTypes) {
for (auto type : types) {
if (type.isSignature() && type.getRecGroup().size() == 1 &&
- !type.isShared()) {
+ !type.getDeclaredSuperType() && !type.isOpen() && !type.isShared()) {
sigTypes.insert({type.getSignature(), type});
}
}