mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Improve error message when using ',' in struct declarations. #1920
This commit is contained in:
7
test/test_suite/struct/struct_comma.c3
Normal file
7
test/test_suite/struct/struct_comma.c3
Normal file
@@ -0,0 +1,7 @@
|
||||
import std::io;
|
||||
|
||||
struct Test
|
||||
{
|
||||
int a, // #error: Did you accidentally use ','
|
||||
int b,
|
||||
}
|
||||
Reference in New Issue
Block a user