dmd/compiler/test/fail_compilation/test24745.d
royalpinto007 36c58b7368 fix Bugzilla 24745 - improve associative array syntax error message
Signed-off-by: royalpinto007 <royalpinto007@gmail.com>
2024-11-17 08:08:15 +08:00

13 lines
233 B
D

// https://issues.dlang.org/show_bug.cgi?id=24745
/*
TEST_OUTPUT:
---
fail_compilation/test24745.d(12): Error: incorrect syntax for associative array, expected `[]`, found `{}`
---
*/
void main()
{
int[int] f = {1: 1, 2: 2};
}