mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
24 lines
851 B
D
24 lines
851 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/test21062.d(16): Error: variable name expected after type `bool`, not `synchronized`
|
|
fail_compilation/test21062.d(16): `synchronized` is a keyword, perhaps append `_` to make it an identifier
|
|
fail_compilation/test21062.d(17): Error: variable name expected after type `ubyte*`, not `out`
|
|
fail_compilation/test21062.d(17): `out` is a keyword, perhaps append `_` to make it an identifier
|
|
fail_compilation/test21062.d(21): Error: variable name expected after type `uint`, not `in`
|
|
fail_compilation/test21062.d(21): `in` is a keyword, perhaps append `_` to make it an identifier
|
|
---
|
|
*/
|
|
|
|
// https://issues.dlang.org/show_bug.cgi?id=21062
|
|
// Confusing error when using a keyword as an identifier for a declaration
|
|
|
|
bool synchronized;
|
|
ubyte* out;
|
|
|
|
void main()
|
|
{
|
|
foreach(uint in; [])
|
|
{
|
|
}
|
|
}
|