mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
13 lines
372 B
D
13 lines
372 B
D
/*
|
|
REQUIRED_ARGS: -preview=in
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/diaginref.d(11): Error: attribute `ref` is redundant with previously-applied `in`
|
|
fail_compilation/diaginref.d(13): Error: attribute `in` cannot be added after `ref`: remove `ref`
|
|
---
|
|
*/
|
|
|
|
void foo(in string) {}
|
|
void foo1(in ref string) {}
|
|
void foo2(T)(in T v, string) {}
|
|
void foo3(T)(ref in T v, string) {}
|