AST: Remove PolymorphicFunctionType

This commit is contained in:
Slava Pestov
2016-11-27 05:51:43 -08:00
parent 287700631a
commit 835472b14f
26 changed files with 7 additions and 237 deletions

View File

@@ -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");