Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
diag13215.d
blob: 3ae50c9ae1c245cc8b59fe8f4040d7fec77b1101 [
file
] [
log
] [
blame
]
/*
TEST_OUTPUT:
---
fail_compilation/diag13215.d(11): Error: cannot implicitly convert expression `[1, 2, 3]` of type `int[]` to `immutable(uint[2])[]`
---
*/
enum
uint
N
=
10
;
immutable
uint
[
2
][
3
]
arr2
;
shared
static
this
()
{
arr2
=
[
1
,
2
,
3
];
}