Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix Issue 13609 - better error message for missing '}'
- Loading branch information
Showing
3 changed files
with
29 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* | ||
TEST_OUTPUT: | ||
--- | ||
fail_compilation/diag13609a.d(11): Error: } expected following members in class declaration at fail_compilation/diag13609a.d(8) | ||
--- | ||
*/ | ||
|
||
class C | ||
{ | ||
void foo() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* | ||
TEST_OUTPUT: | ||
--- | ||
fail_compilation/diag13609b.d(9): Error: { } expected following struct declaration | ||
fail_compilation/diag13609b.d(9): Error: Declaration expected, not ':' | ||
--- | ||
*/ | ||
|
||
struct S : |