dmd/compiler/test/fail_compilation/named_arguments_parse.d

15 lines
389 B
D

/**
TEST_OUTPUT:
---
fail_compilation/named_arguments_parse.d(13): Error: named arguments not allowed here
fail_compilation/named_arguments_parse.d(14): Error: named arguments not allowed here
---
*/
// @(attribute: 3) Currently gives an ugly parse error, will be better when named template arguments are implemented
void main()
{
mixin(thecode: "{}");
pragma(msg, themsg: "hello");
}