Skip to content

Commit 618b753

Browse files
committed
[Function builders] Update test case
1 parent 6def030 commit 618b753

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/ModuleInterface/function_builders.swift

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,15 @@ public struct TupleBuilder {
2626
return (t1, t2, t3, t4, t5)
2727
}
2828

29-
public static func buildDo<T>(_ value: T) -> T { return value }
29+
public static func buildDo<T1, T2>(_ t1: T1, _ t2: T2) -> (T1, T2) {
30+
return (t1, t2)
31+
}
32+
33+
public static func buildDo<T1, T2, T3>(_ t1: T1, _ t2: T2, _ t3: T3)
34+
-> (T1, T2, T3) {
35+
return (t1, t2, t3)
36+
}
37+
3038
public static func buildIf<T>(_ value: T?) -> T? { return value }
3139
}
3240

0 commit comments

Comments
 (0)