Skip to content

Commit 8498f4d

Browse files
committed
Rename fail test
1 parent 1390a3c commit 8498f4d

2 files changed

Lines changed: 19 additions & 19 deletions

File tree

compiler/test/fail_compilation/fail20547.d

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
TEST_OUTPUT:
3+
---
4+
fail_compilation/newaa.d(14): Error: cannot implicitly convert expression `new string[string]` of type `string[string]` to `int[string]`
5+
fail_compilation/newaa.d(15): Error: function expected before `()`, not `new int[int]` of type `int[int]`
6+
fail_compilation/newaa.d(17): Error: `new` cannot take arguments for an associative array
7+
---
8+
*/
9+
#line 9
10+
void main()
11+
{
12+
//https://issues.dlang.org/show_bug.cgi?id=11790
13+
string[string] crash = new string[string];
14+
//https://issues.dlang.org/show_bug.cgi?id=20547
15+
int[string] c = new typeof(crash);
16+
auto d = new int[int](5);
17+
alias AA = char[string];
18+
auto e = new AA(5);
19+
}

0 commit comments

Comments
 (0)