Add basic boilerplate for AST coroutines and yields

This commit is contained in:
Anton Korobeynikov
2024-09-23 19:28:49 -07:00
parent 2db0e8aea8
commit 797f500286
28 changed files with 202 additions and 7 deletions

View File

@@ -7468,6 +7468,7 @@ ConstraintSystem::matchTypes(Type type1, Type type2, ConstraintKind kind,
#include "swift/AST/TypeNodes.def"
case TypeKind::Error:
case TypeKind::YieldResult:
return getTypeMatchFailure(locator);
// BuiltinGenericType subclasses
@@ -8503,6 +8504,7 @@ ConstraintSystem::simplifyConstructionConstraint(
case TypeKind::Error:
case TypeKind::Placeholder:
case TypeKind::YieldResult:
return SolutionKind::Error;
case TypeKind::GenericFunction: