✓
Passing This code compiles and runs correctly.
Code
// Pins that `main` stays reserved for the entry module when the alias is declared
// in source, the same as it was reserved in koru.json.
~std/compiler:paths {
main: {{ ENTRY }}/test_lib
}
const std = @import("std");
Must fail at frontend compile:
Parsing or type-checking must reject the program.
Expected compiler error
error[KORU172]: std/compiler:paths - the alias `main` is reserved for the entry module
--> tests/regression/500_INTEGRATION_TESTING/540_VALIDATION/410_paths_alias_main_reserved/input.kz:4:1
|
4 | ~std/compiler:paths {
| ^