Skip to content

Commit 1c412ea

Browse files
AayushMainali-Githubthewilsonator
authored andcommitted
Update TEST_OUTPUT for arrow lambda parentheses in diagnostics
Parenthesizing => literals in hdrgen also changes how they appear in error messages; refresh the affected fail_compilation expectations.
1 parent 948b36f commit 1c412ea

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

compiler/test/fail_compilation/ice10259.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
TEST_OUTPUT:
33
---
44
fail_compilation/ice10259.d(11): Error: circular reference to `ice10259.D.d`
5-
fail_compilation/ice10259.d(11): called from here: `(*function () pure nothrow @safe => x)()`
5+
fail_compilation/ice10259.d(11): called from here: `(*(function () pure nothrow @safe => x))()`
66
---
77
*/
88
class D
@@ -16,7 +16,7 @@ enum x = new D;
1616
TEST_OUTPUT:
1717
---
1818
fail_compilation/ice10259.d(25): Error: circular reference to `ice10259.D2.d`
19-
fail_compilation/ice10259.d(25): called from here: `(*function () pure nothrow @safe => x)()`
19+
fail_compilation/ice10259.d(25): called from here: `(*(function () pure nothrow @safe => x))()`
2020
---
2121
*/
2222
class D2

compiler/test/fail_compilation/test23170.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
TEST_OUTPUT:
33
---
4-
fail_compilation/test23170.d(10): Error: this array literal causes a GC allocation in `@nogc` delegate `() => (*(int[] array) => id(array))([1, 2, 3])`
4+
fail_compilation/test23170.d(10): Error: this array literal causes a GC allocation in `@nogc` delegate `() => (*((int[] array) => id(array)))([1, 2, 3])`
55
---
66
*/
77
// https://issues.dlang.org/show_bug.cgi?id=23170

compiler/test/fail_compilation/test23185.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
TEST_OUTPUT:
55
---
66
fail_compilation/test23185.d(11): Error: no `default` or `case` for `3` in `switch` statement
7-
fail_compilation/test23185.d(15): called from here: `(*function () pure nothrow @nogc @safe => 0)()`
7+
fail_compilation/test23185.d(15): called from here: `(*(function () pure nothrow @nogc @safe => 0))()`
88
---
99
*/
1010
enum x = () {

compiler/test/fail_compilation/test24036.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Issue 24036 - assert message in CTFE becomes `['m', 'e', 's', 's', 'a', 'g', 'e'
55
TEST_OUTPUT:
66
---
77
fail_compilation/test24036.d(19): Error: message
8-
fail_compilation/test24036.d(21): called from here: `(*function () pure nothrow @safe => 42)()`
8+
fail_compilation/test24036.d(21): called from here: `(*(function () pure nothrow @safe => 42))()`
99
---
1010
*/
1111

compiler/test/fail_compilation/traits_initSymbol.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ void test1()
2121
TEST_OUTPUT:
2222
---
2323
fail_compilation/traits_initSymbol.d(203): Error: cannot determine the address of the initializer symbol during CTFE
24-
fail_compilation/traits_initSymbol.d(203): called from here: `(*function () pure nothrow @nogc @safe => S)()`
24+
fail_compilation/traits_initSymbol.d(203): called from here: `(*(function () pure nothrow @nogc @safe => S))()`
2525
---
2626
*/
2727
#line 200

0 commit comments

Comments
 (0)