gcc/testsuite/gdc.test/compilable/test14375.d
raw| 1 | // https://issues.dlang.org/show_bug.cgi?id=14375 |
| 2 | interface IKeysAPI(string greetings) { |
| 3 | static assert(greetings == "Hello world", greetings); |
| 4 | } |
| 5 | |
| 6 | void main() { |
| 7 | foreach (method; __traits(allMembers, IKeysAPI!("Hello world"))) { |
| 8 | static assert (method.length, "Empty string from the compiler ??"); |
| 9 | pragma(msg, method); |
| 10 | } |
| 11 | } |