AST: Add TypePosition::Shape

This commit is contained in:
Slava Pestov
2023-07-25 02:39:59 -04:00
parent 747b060389
commit f07495dd64
3 changed files with 4 additions and 2 deletions

View File

@@ -2199,6 +2199,7 @@ static Type typeEraseExistentialSelfReferences(Type refTy, Type baseTy,
case TypePosition::Contravariant:
case TypePosition::Invariant:
case TypePosition::Shape:
return Type(t);
}