mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Type check withoutActuallyEscaping on async functions
Fixes rdar://73695354.
This commit is contained in:
@@ -1900,6 +1900,7 @@ static std::pair<Type, Type> getTypeOfReferenceWithSpecialTypeCheckingSemantics(
|
||||
auto bodyClosure = FunctionType::get(arg, result,
|
||||
FunctionType::ExtInfoBuilder()
|
||||
.withNoEscape(true)
|
||||
.withAsync(true)
|
||||
.withThrows(true)
|
||||
.build());
|
||||
FunctionType::Param args[] = {
|
||||
@@ -1910,6 +1911,7 @@ static std::pair<Type, Type> getTypeOfReferenceWithSpecialTypeCheckingSemantics(
|
||||
auto refType = FunctionType::get(args, result,
|
||||
FunctionType::ExtInfoBuilder()
|
||||
.withNoEscape(false)
|
||||
.withAsync(true)
|
||||
.withThrows(true)
|
||||
.build());
|
||||
return {refType, refType};
|
||||
|
||||
Reference in New Issue
Block a user