dmd/compiler/test/fail_compilation/deprecatedinref.d
Mathias LANG 879e20f321
Deprecate 'in ref' to prepare for -preview=in (#14931)
This should nudge people into using '-preview=in' and clear up
the remaining projects which are incompatible with it.
2023-03-07 11:51:36 +02:00

10 lines
326 B
D

/*
REQUIRED_ARGS: -de
TEST_OUTPUT:
---
fail_compilation/deprecatedinref.d(9): Deprecation: using `in ref` is deprecated, use `-preview=in` and `in` instead
fail_compilation/deprecatedinref.d(10): Deprecation: using `ref in` is deprecated, use `-preview=in` and `in` instead
---
*/
void foo(in ref int);
void foor(ref in int);