mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
19 lines
329 B
D
19 lines
329 B
D
/*
|
|
EXTRA_FILES: imports/imp15925.d
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/test15925.d(18): Error: undefined identifier `X`
|
|
fail_compilation/test15925.d(18): while evaluating: `static assert(X == 1)`
|
|
---
|
|
*/
|
|
|
|
mixin template Import()
|
|
{
|
|
import imports.imp15925;
|
|
}
|
|
|
|
class Foo
|
|
{
|
|
mixin Import!();
|
|
static assert(X == 1);
|
|
}
|