Skip to content

Commit 849689e

Browse files
AnthonyLatsishborla
authored andcommitted
Add x-failed scale test for type-checking nil-coalescing dictionary values
1 parent c03aff5 commit 849689e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// RUN: %scale-test --invert-result --begin 1 --end 8 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
2+
// REQUIRES: asserts, no_asan
3+
4+
let x: Int?
5+
6+
let _ = [
7+
%for i in range(0, N):
8+
"k" : x ?? 0,
9+
%end
10+
]

0 commit comments

Comments
 (0)