004 index kjs directory source

✓ Passing This code compiles and runs correctly.

Code

// Phase 2: a directory's source file lives at `index.kjs` instead of
// `index.kz`. The directory-import path should probe all Koru extensions
// for the index file, not just `.kz`.

const std = @import("std");

~import "$std/io"
~import "$app/mylib"

~app.mylib:greet(name: "kjs index")
| greeted g |> std.io:print.ln("{{ g:s }}")
input.kz

Actual

hello from index.kjs

Must succeed:

Compile and run without errors.

Expected output

hello from index.kjs

Test Configuration

MUST_RUN