mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Improved error messages on incorrect module name. Issue #209
This commit is contained in:
1
test/test_suite/module/module_bad_path_ident.c3
Normal file
1
test/test_suite/module/module_bad_path_ident.c3
Normal file
@@ -0,0 +1 @@
|
||||
module big::MONEY; // #error: The elements of a module path must consist of only lower
|
||||
1
test/test_suite/module/module_bad_path_invalid.c3
Normal file
1
test/test_suite/module/module_bad_path_invalid.c3
Normal file
@@ -0,0 +1 @@
|
||||
module abc::&&; // #error: Each '::' must be followed by a regular lower case sub module name
|
||||
1
test/test_suite/module/module_bad_path_keyword.c3
Normal file
1
test/test_suite/module/module_bad_path_keyword.c3
Normal file
@@ -0,0 +1 @@
|
||||
module abc::if::while; // #error: The module path cannot contain a reserved keyword, try another name
|
||||
1
test/test_suite/module/module_start_bad_ident.c3
Normal file
1
test/test_suite/module/module_start_bad_ident.c3
Normal file
@@ -0,0 +1 @@
|
||||
module BIG::MONEY; // #error: The module name must consist of only lower case letters
|
||||
1
test/test_suite/module/module_start_invalid.c3
Normal file
1
test/test_suite/module/module_start_invalid.c3
Normal file
@@ -0,0 +1 @@
|
||||
module &&; // #error: 'module' should be followed by a module name
|
||||
1
test/test_suite/module/module_start_keyword.c3
Normal file
1
test/test_suite/module/module_start_keyword.c3
Normal file
@@ -0,0 +1 @@
|
||||
module if::hello; // #error: The module name cannot contain a reserved keyword
|
||||
Reference in New Issue
Block a user