mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
16 lines
405 B
D
16 lines
405 B
D
/* TEST_OUTPUT:
|
|
---
|
|
fail_compilation/test19112.d(13): Error: cannot implicitly convert expression `[123, 456]` of type `int[]` to `int[1]`
|
|
fail_compilation/test19112.d(15): Error: cannot implicitly convert expression `a` of type `int[]` to `int[1]`
|
|
---
|
|
*/
|
|
|
|
// https://issues.dlang.org/show_bug.cgi?id=19112
|
|
|
|
void main()
|
|
{
|
|
int[int[1]] aa;
|
|
int* p = [123, 456] in aa;
|
|
int[] a;
|
|
p = a in aa;
|
|
}
|