038 qualified host type wrong module

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

Code

input.kz

Supporting Files

holder.kz

Actual compiler output

error[KORU117]: host type 'Token' is declared by app/holder, not 'app/wrong'
  --> tests/regression/200_COMPILER_FEATURES/220_COMPILATION/220_038_qualified_host_type_wrong_module/input.kz:6:0
    |
  6 | // refused here rather than leaking to codegen as a raw Zig "no member named".
    | ^
  hint: write the declaring module: *<module>:Token

Must fail at frontend compile:

Parsing or type-checking must reject the program.

Error output must contain

host type 'Token' is declared by app/holder, not 'app/wrong'

Flows

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

Test Configuration

MUST_ERROR