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
H. S. Teoh
committed
Nov 28, 2014
1 parent
c0e8143
commit b0f168b
Showing
1 changed file
with
20 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
TEST_OUTPUT: | ||
--- | ||
fail_compilation/test13786.d(14): Error: debug __anonymous level declaration must be at module level | ||
fail_compilation/test13786.d(15): Error: debug abc declaration must be at module level | ||
fail_compilation/test13786.d(16): Error: version __anonymous level declaration must be at module level | ||
fail_compilation/test13786.d(17): Error: version abc declaration must be at module level | ||
fail_compilation/test13786.d(20): Error: template instance test13786.T!() error instantiating | ||
--- | ||
*/ | ||
|
||
template T() | ||
{ | ||
debug = 123; | ||
debug = abc; | ||
version = 123; | ||
version = abc; | ||
} | ||
|
||
alias X = T!(); |