Skip to content

Commit be965fa

Browse files
committed
RemoteAST: Add a test to ensure we support multiple arguments vs a single tuple argument
1 parent 8c108bc commit be965fa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/RemoteAST/structural_types.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ typealias Fn8 = (String, Int, Double, Float) -> ()
3737
printType(Fn8.self)
3838
// CHECK: found type: (String, Int, Double, Float) -> ()
3939

40+
typealias Fn9 = ((Int, Float)) -> ()
41+
printType(Fn9.self)
42+
// CHECK: found type: ((Int, Float)) -> ()
43+
44+
typealias Fn10 = (Int...) -> ()
45+
printType(Fn10.self)
46+
// CHECK: found type: (Int...) -> ()
47+
4048
typealias Tuple1 = (Int, Float, Int)
4149
printType(Tuple1.self)
4250
// CHECK: found type: (Int, Float, Int)

0 commit comments

Comments
 (0)