| 1 |
/* |
| 2 |
TEST_OUTPUT: |
| 3 |
--- |
| 4 |
fail_compilation/ice11982.d(22): Error: basic type expected, not `scope` |
| 5 |
fail_compilation/ice11982.d(22): Error: found `scope` when expecting `;` following expression |
| 6 |
fail_compilation/ice11982.d(22): expression: `new _error_` |
| 7 |
fail_compilation/ice11982.d(22): Error: basic type expected, not `}` |
| 8 |
fail_compilation/ice11982.d(22): Error: missing `{ ... }` for function literal |
| 9 |
fail_compilation/ice11982.d(22): Error: C style cast illegal, use `cast(funk)function _error_() |
| 10 |
{ |
| 11 |
} |
| 12 |
` |
| 13 |
fail_compilation/ice11982.d(22): Error: found `}` when expecting `;` following expression |
| 14 |
fail_compilation/ice11982.d(22): expression: `cast(funk)function _error_() |
| 15 |
{ |
| 16 |
} |
| 17 |
` |
| 18 |
fail_compilation/ice11982.d(23): Error: matching `}` expected following compound statement, not `End of File` |
| 19 |
fail_compilation/ice11982.d(22): unmatched `{` |
| 20 |
--- |
| 21 |
*/ |
| 22 |
void main() { new scope ( funk ) function } |