Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve error message for 'out' on foreach
This hopefully will provide a slightly better user experience, as many other storage classes are accepted. Before, the following error message was printed by DMD: ``` test/fail_compilation/foreach.d(12): Error: basic type expected, not `out` test/fail_compilation/foreach.d(12): Error: no identifier for declarator `_error_` test/fail_compilation/foreach.d(12): Error: found `out` when expecting `;` test/fail_compilation/foreach.d(12): Error: found `;` when expecting `)` test/fail_compilation/foreach.d(12): Error: found `)` when expecting `;` following statement test/fail_compilation/foreach.d(13): Error: basic type expected, not `out` test/fail_compilation/foreach.d(13): Error: no identifier for declarator `_error_` test/fail_compilation/foreach.d(13): Error: found `out` when expecting `;` test/fail_compilation/foreach.d(13): Error: expression expected, not `out` test/fail_compilation/foreach.d(13): Error: found `val` when expecting `)` test/fail_compilation/foreach.d(13): Error: use `{ }` for an empty statement, not `;` test/fail_compilation/foreach.d(13): Error: found `)` when expecting `;` following statement ```
- Loading branch information