Skip to content

Commit e8c92c3

Browse files
AnthonyLatsishborla
authored andcommitted
Add type-checker regression scale test to close swiftlang#43386
1 parent 849689e commit e8c92c3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// RUN: %scale-test --begin 1 --end 15 --step 1 --select NumLeafScopes %s -Xfrontend=-solver-expression-time-threshold=1 -Xfrontend=-verify
2+
// REQUIRES: asserts, no_asan
3+
4+
// https://github.com/apple/swift/issues/43386
5+
6+
// expected-error@+1 {{heterogeneous collection literal could only be inferred to '[Any]'; add explicit type annotation if this is intentional}}
7+
let _ = [
8+
%for i in range(0, N):
9+
0...1,
10+
0..<1,
11+
%end
12+
]

0 commit comments

Comments
 (0)