mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
11 lines
348 B
D
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);
|
|
}
|
|
}
|