mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Function builders] Add tests for function builders on protocol requirements
This commit is contained in:
@@ -47,3 +47,10 @@ public struct UsesBuilderProperty {
|
||||
// CHECK: public func myFunc(@FunctionBuilders.TupleBuilder fn: () -> ())
|
||||
public func myFunc(@TupleBuilder fn: () -> ()) {}
|
||||
}
|
||||
|
||||
public protocol ProtocolWithBuilderProperty {
|
||||
associatedtype Assoc
|
||||
|
||||
// CHECK: @FunctionBuilders.TupleBuilder var myVar: Self.Assoc { get }
|
||||
@TupleBuilder var myVar: Assoc { get }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user