mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
19 lines
510 B
D
19 lines
510 B
D
/*
|
|
REQUIRED_ARGS: -m64
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail19898b.d(17): Error: cannot implicitly convert expression `m` of type `S` to `__vector(int[4])`
|
|
fail_compilation/fail19898b.d(17): Error: expression `__key2 != __limit3` of type `__vector(int[4])` does not have a boolean value
|
|
fail_compilation/fail19898b.d(17): Error: cannot cast expression `__key2` of type `__vector(int[4])` to `S`
|
|
---
|
|
*/
|
|
struct S
|
|
{
|
|
int a;
|
|
}
|
|
|
|
void f (__vector(int[4]) n, S m)
|
|
{
|
|
foreach (i; m .. n)
|
|
cast(void)n;
|
|
}
|