031 bare cross module host type

✓ Passing Passing: the compiler rejects this program as expected.

Code

input.kz

Supporting Files

holder.kz

Actual compiler output

error[KORU115]: host type 'Token' crosses a module boundary bare — write it qualified: *app/holder:Token
  --> tests/regression/200_COMPILER_FEATURES/220_COMPILATION/220_031_bare_cross_module_host_type/input.kz:30:0
    |
 30 | 
    | ^
  hint: the bare spelling is legal only inside the module that declares it ('app/holder', same rule as invocations)

Must fail at frontend compile:

Parsing or type-checking must reject the program.

Error output must contain

*app/holder:Token

Flows

flow ~mint click a branch to expand · @labels scroll to their anchor
mint (id: 7)

Test Configuration

MUST_ERROR