blob: 0e13e3677eba0716f4381e427bdb21b47131dda4 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/fail105.d(11): Error: cannot cast `"bar"` to `int` at compile time
---
*/
//int foo = "foo";
// just Access Violation happens.
int bar = cast(int)cast(char*)"bar";