blob: a45d6d30bae0b74f26ff8acdaea87b42ae45435d [file] [log] [blame]
// REQUIRED_ARGS: -o-
/*
TEST_OUTPUT:
---
fail_compilation/fail_casting2.d(15): Error: type int is not an expression
fail_compilation/fail_casting2.d(17): Error: template lambda has no type
fail_compilation/fail_casting2.d(20): Error: template Templ() has no type
---
*/
void test15214()
{
alias Type = int;
cast(void)(Type);
cast(void)(x => mixin(x)("mixin(x);"));
template Templ() {}
cast(void)(Templ);
}