mirror of
https://github.com/dlang/dmd.git
synced 2025-04-25 12:40:11 +03:00
Add Testcases For other Fixed issues (#21231)
This commit is contained in:
parent
292019346b
commit
d0cf2c7117
1 changed files with 21 additions and 1 deletions
|
@ -1,10 +1,30 @@
|
|||
/*
|
||||
TEST_OUTPUT:
|
||||
---
|
||||
fail_compilation/fix21165.d(9): Error: undefined identifier `foo`
|
||||
fail_compilation/fix21165.d(12): Error: undefined identifier `foo`
|
||||
fail_compilation/fix21165.d(16): Error: undefined identifier `foo`
|
||||
fail_compilation/fix21165.d(21): Error: undefined identifier `foo`
|
||||
fail_compilation/fix21165.d(30): Error: undefined identifier `foo`
|
||||
---
|
||||
*/
|
||||
|
||||
// Test case from Issue #21165
|
||||
foo
|
||||
f() {}
|
||||
|
||||
// Test case from Issue #21171
|
||||
foo
|
||||
bar;
|
||||
|
||||
// Test case from Issue #21169
|
||||
void fun(
|
||||
foo x
|
||||
) {}
|
||||
|
||||
// Test case from Issue #21168
|
||||
enum plusOne(int x) = x + 1;
|
||||
|
||||
alias fooPlusOne =
|
||||
plusOne
|
||||
!
|
||||
foo;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue