112 reject redundant phantom qualification

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

Code

input.kz

Supporting Files

lib/db.kz

Actual compiler output

error[KORU116]: redundant phantom qualifier: bare '<!active>' already scopes to the base type's module 'app/lib/db' — drop the qualifier
  --> tests/regression/300_ADVANCED_FEATURES/330_PHANTOM_TYPES/330_112_reject_redundant_phantom_qualification/input.kz:13:0
    |
 13 | // the state `<app/lib/db:!active>` restates it. Should be `<!active>` (bare).
    | ^
  hint: write <!active>; qualify a phantom only when its home differs from the type's

Frontend must reject with:

CONTAINS redundant

Flows

flow ~begin click a branch to expand · @labels scroll to their anchor
begin

Test Configuration

MUST_ERROR