mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #40544 from DougGregor/sr-15131-closure-effects
Extend "uses concurrency features" checks for closures currently being type checked
This commit is contained in:
@@ -2171,7 +2171,7 @@ ConstraintSystem::matchFunctionTypes(FunctionType *func1, FunctionType *func2,
|
||||
|
||||
/// Whether to downgrade to a concurrency warning.
|
||||
auto isConcurrencyWarning = [&] {
|
||||
if (contextRequiresStrictConcurrencyChecking(DC))
|
||||
if (contextRequiresStrictConcurrencyChecking(DC, GetClosureType{*this}))
|
||||
return false;
|
||||
|
||||
switch (kind) {
|
||||
|
||||
Reference in New Issue
Block a user