dmd/compiler/test/fail_compilation/failinout2.d
Nick Treleaven 6b8192193e
[dsymbolsem] Tweak punctuation for 3 error messages (#14780)
* 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
2023-01-05 10:34:05 +02:00

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;
}