mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00

* Tweak punctuation for 3 error messages Fix Issue 13656 - clarify error when trying to declare a variable of type ref. Tweak 2 inout errors. * Use hyphen & fix `auto Type` error too
13 lines
335 B
D
13 lines
335 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/failinout2.d(8): Error: variable `failinout2.x` - only parameters or stack-based variables can be `inout`
|
|
fail_compilation/failinout2.d(12): Error: variable `failinout2.S3748.err8` - only parameters or stack-based variables can be `inout`
|
|
---
|
|
*/
|
|
inout int x;
|
|
|
|
struct S3748
|
|
{
|
|
inout(int) err8;
|
|
}
|