-
-
Notifications
You must be signed in to change notification settings - Fork 609
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Issue 22054 - Referencing a fwd-declared field results in many er…
…ror messages
- Loading branch information
Showing
2 changed files
with
30 additions
and
1 deletion.
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,15 @@ | ||
// https://issues.dlang.org/show_bug.cgi?id=22054 | ||
|
||
/* | ||
TEST_OUTPUT: | ||
--- | ||
fail_compilation/test22054.d(10): Error: class `test22054.exception` is forward referenced when looking for `what` | ||
--- | ||
*/ | ||
|
||
class exception; | ||
|
||
void main () | ||
{ | ||
assert(exception.what() == "Hello"); | ||
} |