060 fs read lines

○ Planned This feature is planned but not yet implemented.

Feature: fs.read_lines not implemented

Failure Output

Showing last 10 of 42 lines
  --> structural_check:6:0

❌ Compiler coordination error: Incomplete branch coverage
error: CompilerCoordinationFailed
/Users/larsde/src/koru/tests/regression/300_ADVANCED_FEATURES/320_STDLIB/320_060_fs_read_lines/backend.zig:10982:17: 0x104982433 in emit (backend)
                return error.CompilerCoordinationFailed;
                ^
/Users/larsde/src/koru/tests/regression/300_ADVANCED_FEATURES/320_STDLIB/320_060_fs_read_lines/backend.zig:11066:28: 0x1049831bf in main (backend)
    const generated_code = try RuntimeEmitter.emit(compile_allocator, final_ast);
                           ^

Code

// Test std.fs:read_lines with identity branches
~import "$std/fs"
~import "$std/io"

~std.fs:read_lines(path: "data.txt")
| lines |>
    std.io:print.ln("Read file successfully")
| failed err |>
    std.io:print.ln("Error: ${err}")
input.kz