mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
24 lines
356 B
D
24 lines
356 B
D
// PERMUTE_ARGS:
|
|
// REQUIRED_ARGS: -D -Dd${RESULTS_DIR}/compilable -o-
|
|
// POST_SCRIPT: compilable/extra-files/ddocAny-postscript.sh
|
|
|
|
/**
|
|
*
|
|
*/
|
|
struct MyStruct(T)
|
|
{
|
|
static if( true )
|
|
{
|
|
void MyStruct() {}
|
|
}
|
|
}
|
|
|
|
void main()
|
|
{
|
|
}
|
|
|
|
/+
|
|
23
|
|
C:\code\d\bugs>dmd -D -o- 148_1.d
|
|
148_1.d(6): Error: static if conditional cannot be at global scope
|
|
+/
|