Skip to content

Commit c9d70dc

Browse files
committed
[RemoteAST] NFC: Add couple more test-cases for function metadata type
1 parent 51d9542 commit c9d70dc

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

test/RemoteAST/structural_types.swift

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,30 @@ typealias Fn2 = (Int, Float) -> ()
1313
printType(Fn2.self)
1414
// CHECK: found type: (Int, Float) -> ()
1515

16+
typealias Fn3 = (inout Int, Float) -> ()
17+
printType(Fn3.self)
18+
// CHECK: found type: (inout Int, Float) -> ()
19+
20+
typealias Fn4 = (inout Int, inout Float) -> ()
21+
printType(Fn4.self)
22+
// CHECK: found type: (inout Int, inout Float) -> ()
23+
24+
typealias Fn5 = (Int, inout Float) -> ()
25+
printType(Fn5.self)
26+
// CHECK: found type: (Int, inout Float) -> ()
27+
28+
typealias Fn6 = (Int, inout String, Float) -> ()
29+
printType(Fn6.self)
30+
// CHECK: found type: (Int, inout String, Float) -> ()
31+
32+
typealias Fn7 = (inout Int, String, inout Float, Double) -> ()
33+
printType(Fn7.self)
34+
// CHECK: found type: (inout Int, String, inout Float, Double) -> ()
35+
36+
typealias Fn8 = (String, Int, Double, Float) -> ()
37+
printType(Fn8.self)
38+
// CHECK: found type: (String, Int, Double, Float) -> ()
39+
1640
typealias Tuple1 = (Int, Float, Int)
1741
printType(Tuple1.self)
1842
// CHECK: found type: (Int, Float, Int)

0 commit comments

Comments
 (0)