Fix max module name to 31 chars and the entire module path to 63 characters.

This commit is contained in:
Christoffer Lerno
2025-08-18 12:02:00 +02:00
parent ad02fad167
commit 7c8e3dd4fd
6 changed files with 65 additions and 5 deletions

View 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()
{
}

View File

@@ -0,0 +1,10 @@
module a;
import b, std;
fn void main()
{
io::printn(b::test());
}
module b;
fn int test() => 37;