mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
15 lines
287 B
D
15 lines
287 B
D
void test12523(inout(int))
|
|
{
|
|
void check(T)()
|
|
{
|
|
T[] a;
|
|
foreach (ref e; a)
|
|
static assert(is(typeof(e) == T));
|
|
}
|
|
|
|
check!(int)();
|
|
check!(inout(int))();
|
|
check!(inout(const(int)))();
|
|
check!(const(int))();
|
|
check!(immutable(int))();
|
|
}
|