| 1 |
// EXTRA_SOURCES: imports/test21501b.d imports/test21501c.d |
| 2 |
// https://issues.dlang.org/show_bug.cgi?id=21501 |
| 3 |
|
| 4 |
module test21501a; |
| 5 |
import imports.test21501b; |
| 6 |
import imports.test21501c; |
| 7 |
|
| 8 |
alias Identity(alias T) = T; |
| 9 |
|
| 10 |
struct A |
| 11 |
{ |
| 12 |
alias a = imports.test21501c.C; |
| 13 |
const int b = imports.test21501c.D; // fixed |
| 14 |
alias c = Identity!(mixin(q{imports.test21501c.C})); // fixed |
| 15 |
const int d = Identity!(mixin(q{imports.test21501c.D})); // fixed |
| 16 |
|
| 17 |
static assert(is(a == c) && is(a == int)); |
| 18 |
static assert(b == d && b == 1); |
| 19 |
} |