-
-
Notifications
You must be signed in to change notification settings - Fork 595
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c9afb9
commit d0fabaa
Showing
5 changed files
with
190 additions
and
113 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
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,24 @@ | ||
/* TEST_OUTPUT: | ||
--- | ||
fail_compilation/failcontracts.d(18): Error: missing { ... } for function literal | ||
fail_compilation/failcontracts.d(18): Error: semicolon expected following auto declaration, not 'bode' | ||
fail_compilation/failcontracts.d(19): Error: function declaration without return type. (Note that constructors are always named 'this') | ||
fail_compilation/failcontracts.d(19): Error: no identifier for declarator test1() | ||
fail_compilation/failcontracts.d(19): Error: semicolon expected following function declaration | ||
fail_compilation/failcontracts.d(20): Error: semicolon expected following function declaration | ||
fail_compilation/failcontracts.d(22): Error: unexpected ( in declarator | ||
fail_compilation/failcontracts.d(22): Error: found 'T' when expecting ')' | ||
fail_compilation/failcontracts.d(22): Error: enum declaration is invalid | ||
fail_compilation/failcontracts.d(22): Error: found ')' instead of statement | ||
--- | ||
*/ | ||
|
||
void test() | ||
{ | ||
auto f1 = function() bode; | ||
auto test1() bode; | ||
auto test2()() bode; | ||
|
||
enum : int (int function() bode T); | ||
} | ||
|
Oops, something went wrong.
d0fabaa
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know someone called "bode" ?