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