File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -5606,6 +5606,7 @@ inline bool TypeBase::hasSimpleTypeRepr() const {
5606
5606
case TypeKind::NestedArchetype:
5607
5607
return cast<NestedArchetypeType>(this )->getParent ()->hasSimpleTypeRepr ();
5608
5608
5609
+ case TypeKind::OpaqueTypeArchetype:
5609
5610
case TypeKind::OpenedArchetype:
5610
5611
return false ;
5611
5612
Original file line number Diff line number Diff line change @@ -3456,7 +3456,7 @@ class TypePrinter : public TypeVisitor<TypePrinter> {
3456
3456
}
3457
3457
3458
3458
bool isSimple = T->hasSimpleTypeRepr ();
3459
- if (isSimple && T->is <OpaqueTypeArchetypeType>()) {
3459
+ if (! isSimple && T->is <OpaqueTypeArchetypeType>()) {
3460
3460
auto opaqueTy = T->castTo <OpaqueTypeArchetypeType>();
3461
3461
switch (Options.OpaqueReturnTypePrinting ) {
3462
3462
case PrintOptions::OpaqueReturnTypePrintingMode::StableReference:
You can’t perform that action at this time.
0 commit comments