✓
Passing This code compiles and runs correctly.
Code
// Negative test: cross-module type references use the slash separator.
//
// Imports (`~import std/parser`) and call sites (`std/parser:parse`) were
// migrated from dots to slashes long ago; cross-module *type* references were
// the one site left on the stale dotted form. The compiler accepted both, which
// is the debt this test kills: the dotted form `std.parser:ParseResult` must be
// rejected at the frontend — write `std/parser:ParseResult`.
~import std/parser
~pub event inspect { result: std.parser:ParseResult }
| ok bool
Must fail at frontend compile:
Parsing or type-checking must reject the program.
Test Configuration
Expected Error:
'.' is not a namespace separator in 'std.parser'