Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/fail3150.d

raw
1 // REQUIRED_ARGS: -de
2 /*
3 TEST_OUTPUT:
4 ---
5 fail_compilation/fail3150.d(10): Error: cannot cast expression `[1, 2]` of type `int[]` to `ulong`
6 ---
7 */
8
9 void main() {
10 ulong u = cast(ulong)[1,2];
11 }