✗
Failing This test is currently failing.
Failed: backend-exec
Error Details
output_emitted.zig:118:57: error: type 'i32' does not support struct initialization syntax
Failure Output
🎯 Compiler coordination: Passes: 20 (flow-based: elaborate, analysis, emission)
Error: output_emitted.zig:118:57: error: type 'i32' does not support struct initialization syntax
return .{ .@"drawn" = width * height };
~~~~~~^~~~~~~~
referenced by:
handler [inlined]: output_emitted.zig:107:51
flow0: output_emitted.zig:44:77
4 reference(s) hidden; use '-freference-trace=6' to see all references Code
// Test 833: Basic directory import
//
// Tests importing a directory containing multiple .kz files
// Directory import creates two-level namespace: package/module:event()
const std = @import("std");
// Import directory 'lib/raylib' containing graphics.kz and audio.kz
// With canonical naming, events are fully qualified:
// - app/lib/raylib/graphics:render()
// - app/lib/raylib/graphics:clear()
// - app/lib/raylib/audio:play()
// - app/lib/raylib/audio:stop()
~import app/lib/raylib
// Test using directory imports with full canonical paths
~app/lib/raylib/graphics:render(width: 1920, height: 1080): _ |> app/lib/raylib/graphics:clear(color: 0xFF0000) |> app/lib/raylib/audio:play(sound_id: 42) |> app/lib/raylib/audio:stop()
Must succeed:
Compile and run without errors.
Flows
flow ~render click a branch to expand · @labels scroll to their anchor
render (width: 1920, height: 1080)
Imported Files
// Audio module for raylib
const std = @import("std");
~pub tor play { sound_id: i32 }
~pub tor stop {}
~proc play|zig {
}
~proc stop|zig {
}
// Graphics module for raylib
const std = @import("std");
~pub tor render { width: i32, height: i32 } -> i32
~pub tor clear { color: i32 }
~proc render|zig {
return .{ .@"drawn" = width * height };
}
~proc clear|zig {
}