mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: Re-baseline SendingArgsAndResults feature.
This commit is contained in:
@@ -88,10 +88,6 @@ public func sendingABI() -> Any? { nil }
|
||||
// CHECK: #if {{.*}} && $ABIAttributeSE0479
|
||||
// CHECK: @abi(func sendingABI() -> sending Any?)
|
||||
// CHECK: public func sendingABI() -> Any?
|
||||
// CHECK: #elseif {{.*}} && $SendingArgsAndResults
|
||||
// CHECK: @_silgen_name("$s5attrs10sendingABIypSgyF")
|
||||
// CHECK: public func sendingABI() -> Any?
|
||||
// CHECK: #else
|
||||
// CHECK: @_silgen_name("$s5attrs10sendingABIypSgyF")
|
||||
// CHECK: public func sendingABI() -> Any?
|
||||
// CHECK: #endif
|
||||
|
||||
@@ -20,11 +20,7 @@ public struct Test {
|
||||
public init(@_inheritActorContext x: @Sendable () async -> Int) {}
|
||||
|
||||
// CHECK: #if compiler(>=5.3) && $AlwaysInheritActorContext
|
||||
// CHECK-NEXT: #if compiler(>=5.3) && $SendingArgsAndResults
|
||||
// CHECK-NEXT: public init(@_inheritActorContext(always) y: sending () async -> Swift.Void)
|
||||
// CHECK-NEXT: #else
|
||||
// CHECK-NEXT: public init(@_inheritActorContext(always) y: () async -> Swift.Void)
|
||||
// CHECK-NEXT: #endif
|
||||
// CHECK-NEXT: #endif
|
||||
public init(@_inheritActorContext(always) y: sending () async -> Void) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user