006 foreign deref across import

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

Code

input.k

Supporting Files

lib.k

Actual compiler output

error[KORU030]: foreign entry 'File' has no field 'bogus' (fields: path, handle) — a foreign deref names a registered presence claim; the host owns substance
  --> tests/regression/600_STDLIB/667_FOREIGN/667_006_foreign_deref_across_import/input.k:11:0

❌ Compiler coordination error: Validation failed (see errors above)
   (set KORU_BACKEND_TRACE=1 for the backend return trace)

Compiler must reject:

Compilation must fail with a diagnostic.

Test Configuration

MUST_ERROR