mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fix max module name to 31 chars and the entire module path to 63 characters.
This commit is contained in:
17
test/test_suite/module/module_long_name.c3
Normal file
17
test/test_suite/module/module_long_name.c3
Normal file
@@ -0,0 +1,17 @@
|
||||
module a1234567890123456789012345678901; // #error: The module name is too long
|
||||
|
||||
fn void main()
|
||||
{
|
||||
}
|
||||
|
||||
module a123456789012345678901234567890::ifjeijfoiejfoejifojeiofjioe::ifjeijiefjiefj;
|
||||
|
||||
fn void foo()
|
||||
{
|
||||
}
|
||||
|
||||
module a123456789012345678901234567890::ifjeijfoiejfoejieiofjioe::ifjeijiji::efj::fefeif::ofjiwjfe; // #error: The full module path is too long
|
||||
|
||||
fn void foo()
|
||||
{
|
||||
}
|
||||
10
test/test_suite/module/module_short.c3t
Normal file
10
test/test_suite/module/module_short.c3t
Normal file
@@ -0,0 +1,10 @@
|
||||
module a;
|
||||
import b, std;
|
||||
|
||||
fn void main()
|
||||
{
|
||||
io::printn(b::test());
|
||||
}
|
||||
|
||||
module b;
|
||||
fn int test() => 37;
|
||||
Reference in New Issue
Block a user