Skip to content

Commit d0cf2c7

Browse files
authored
Add Testcases For other Fixed issues (dlang#21231)
1 parent 2920193 commit d0cf2c7

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed
Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,30 @@
11
/*
22
TEST_OUTPUT:
33
---
4-
fail_compilation/fix21165.d(9): Error: undefined identifier `foo`
4+
fail_compilation/fix21165.d(12): Error: undefined identifier `foo`
5+
fail_compilation/fix21165.d(16): Error: undefined identifier `foo`
6+
fail_compilation/fix21165.d(21): Error: undefined identifier `foo`
7+
fail_compilation/fix21165.d(30): Error: undefined identifier `foo`
58
---
69
*/
710

811
// Test case from Issue #21165
912
foo
1013
f() {}
14+
15+
// Test case from Issue #21171
16+
foo
17+
bar;
18+
19+
// Test case from Issue #21169
20+
void fun(
21+
foo x
22+
) {}
23+
24+
// Test case from Issue #21168
25+
enum plusOne(int x) = x + 1;
26+
27+
alias fooPlusOne =
28+
plusOne
29+
!
30+
foo;

0 commit comments

Comments
 (0)