dmd/compiler/test/compilable/test14375.d
2022-07-09 18:53:07 +02:00

11 lines
348 B
D

// https://issues.dlang.org/show_bug.cgi?id=14375
interface IKeysAPI(string greetings) {
static assert(greetings == "Hello world", greetings);
}
void main() {
foreach (method; __traits(allMembers, IKeysAPI!("Hello world"))) {
static assert (method.length, "Empty string from the compiler ??");
pragma(msg, method);
}
}