Debian Codegraph @

gcc/testsuite/gdc.test/compilable/imports/test11225b.d

raw
1 module imports.test11225b;
2 import test11225a;
3
4 interface J : I {} // remove this line to make it work
5
6 static assert(is(typeof({ import imports.test11225c; }))); // OK
7 pragma(msg, B!().result); // just instantiates the template
8
9 template B()
10 {
11 static assert(is(typeof({ import imports.test11225c; }))); // FAILS
12 enum result = "WORKS";
13 }