v0.1.1: Add warning log when mixin is not found

This commit is contained in:
2026-01-19 19:19:28 +05:30
parent 8ff473839c
commit c172009799
2 changed files with 6 additions and 3 deletions

View File

@@ -765,8 +765,11 @@ pub const Runtime = struct {
}
}
// If still not found, skip this mixin call
const mixin_def = mixin orelse return;
// If still not found, log warning and skip this mixin call
const mixin_def = mixin orelse {
std.log.warn("mixin '{s}' not found, skipping", .{call.name});
return;
};
try self.context.pushScope();
defer self.context.popScope();