Skip to content

Commit e748542

Browse files
authored
Merge pull request #38106 from hborla/add-fast-typechecker-test
[NFC] Add a fast type checker test for rdar://74853403.
2 parents ded1792 + 30ec896 commit e748542

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1
2+
// REQUIRES: tools-release,no_asan
3+
4+
func makeString(_ strings: [String]) -> String { "" }
5+
func makeString(_ string: String) -> String { "" }
6+
7+
func test(message: inout String, d: [String: String]?) {
8+
message += d.map {
9+
$0.reduce("") {
10+
$0 + makeString($1.key) + "" + makeString($1.value) + "" + makeString($1.key) + ""
11+
}
12+
} ?? ""
13+
}
14+

0 commit comments

Comments
 (0)