Support alias foo = module std::io module aliasing.

This commit is contained in:
Christoffer Lerno
2025-08-01 02:13:08 +02:00
parent bdbe81fedd
commit e3a8a3ec02
21 changed files with 205 additions and 67 deletions

View File

@@ -0,0 +1,3 @@
module abc;
alias test @if(true) = module abc; // #error: Module aliases cannot

View File

@@ -0,0 +1,5 @@
module foo;
alias FOO = module abc; // #error: A (lower case) module name was expected here
alias hellO = module abc; // #error: The module name must be all lower case
alias hllo = module aBC; // #error: A module name may not have any

View File

@@ -0,0 +1,7 @@
module abc;
import std;
alias xyz1 = module std::io;
alias xyz2 = module std::io;
alias xyz3 = module std::io;
alias xyz2 = module std::io; // #error: The module alias must be unique

View File

@@ -0,0 +1,3 @@
module abc;
alias test = module abg; // #error: No module named