mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Remove PolymorphicFunctionType
This commit is contained in:
@@ -1576,7 +1576,6 @@ ConstraintSystem::matchTypes(Type type1, Type type2, ConstraintKind kind,
|
||||
return matchFunctionTypes(func1, func2, kind, flags, locator);
|
||||
}
|
||||
|
||||
case TypeKind::PolymorphicFunction:
|
||||
case TypeKind::GenericFunction:
|
||||
llvm_unreachable("Polymorphic function type should have been opened");
|
||||
|
||||
@@ -2260,9 +2259,6 @@ ConstraintSystem::simplifyConstructionConstraint(
|
||||
// Break out to handle the actual construction below.
|
||||
break;
|
||||
|
||||
case TypeKind::PolymorphicFunction:
|
||||
llvm_unreachable("Polymorphic function type should have been opened");
|
||||
|
||||
case TypeKind::UnboundGeneric:
|
||||
llvm_unreachable("Unbound generic type should have been opened");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user