Skip to content

Commit dd2d874

Browse files
committed
Fix 2 fail_compilation tests
1 parent dba7c6c commit dd2d874

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

test/fail_compilation/fail20547.d

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
/*
22
TEST_OUTPUT:
33
---
4-
fail_compilation/fail20547.d(12): Error: cannot create a `string[string]` with `new`
5-
fail_compilation/fail20547.d(14): Error: cannot create a `string[string]` with `new`
4+
fail_compilation/fail20547.d(14): Error: cannot implicitly convert expression `new string[string]` of type `string[string]` to `int[string]`
65
---
76
*/
8-
7+
#line 9
98
void main()
109
{
1110
//https://issues.dlang.org/show_bug.cgi?id=11790

test/fail_compilation/misc_parser_err_cov1.d

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ fail_compilation/misc_parser_err_cov1.d(31): Error: expression expected, not `)`
1010
fail_compilation/misc_parser_err_cov1.d(32): Error: `type identifier : specialization` expected following `is`
1111
fail_compilation/misc_parser_err_cov1.d(33): Error: semicolon expected following auto declaration, not `auto`
1212
fail_compilation/misc_parser_err_cov1.d(33): Error: found `+` when expecting `(` following `mixin`
13-
fail_compilation/misc_parser_err_cov1.d(34): Error: cannot create a `char[float]` with `new`
1413
fail_compilation/misc_parser_err_cov1.d(35): Error: `key:value` expected for associative array literal
1514
fail_compilation/misc_parser_err_cov1.d(36): Error: basic type expected, not `;`
1615
fail_compilation/misc_parser_err_cov1.d(36): Error: `{ members }` expected for anonymous class
@@ -44,7 +43,7 @@ void main()
4443
auto tt = __traits(<o<);
4544
auto b = is ;
4645
auto mx1 = mixin +);
47-
auto aa1 = new char[float];
46+
4847
aa += [key:value, key];
4948
auto anon1 = new class;
5049
auto anon2 = new class {};

0 commit comments

Comments
 (0)