016 optional parent

✓ Passing This code compiles and runs correctly.

Code

input.kz

Must fail at frontend compile:

Parsing or type-checking must reject the program.

Expected compiler error

error[PARSE003]: import path too deep: 'app/test_lib/net/tcp' has 3 segments after alias (max: 2)
  To fix: declare a new alias in the entry file, e.g.:
    ~std/compiler:paths { mylib: ./path/to/lib }
  Then use: ~import mylib/... (Suggested: extract 'app' as its own alias)
  --> tests/regression/100_MODULE_SYSTEM/110_IMPORTS/110_016_optional_parent/input.kz:18:1
    |
 18 | ~import app/test_lib/net/tcp
    | ^

Flows

flow ~connect click a branch to expand · @labels scroll to their anchor
connect (host: "localhost", port: 8080)
flow ~test click a branch to expand · @labels scroll to their anchor
test

Imported Files

test_lib/net/tcp.kz