mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00

* Fix Issue 24000 - show open bracket "{" location for Error: matching `}` expected * Show unmatched brace after compound statement * Update tests
23 lines
849 B
D
23 lines
849 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail315.d-mixin-17(17): Error: found `;` when expecting `,`
|
|
fail_compilation/fail315.d-mixin-17(17): Error: expression expected, not `}`
|
|
fail_compilation/fail315.d-mixin-17(17): Error: found `End of File` when expecting `,`
|
|
fail_compilation/fail315.d-mixin-17(17): Error: found `End of File` when expecting `]`
|
|
fail_compilation/fail315.d-mixin-17(17): Error: found `End of File` when expecting `;` following `return` statement
|
|
fail_compilation/fail315.d-mixin-17(17): Error: matching `}` expected following compound statement, not `End of File`
|
|
fail_compilation/fail315.d-mixin-17(17): unmatched `{`
|
|
fail_compilation/fail315.d(22): Error: template instance `fail315.foo!()` error instantiating
|
|
---
|
|
*/
|
|
|
|
void foo(S...)(S u)
|
|
{
|
|
alias typeof(mixin("{ return a[1;}()")) z;
|
|
}
|
|
|
|
void main()
|
|
{
|
|
foo!()(0);
|
|
}
|