?
Unknown Status unknown.
Code
// TEST: Instantiate generic with two type parameters
//
// ~type(StringIntEntry = Entry<[]const u8, i32>) substitutes both params.
//
// Expected: Compiles with both type parameters substituted
~import "$std/types"
const std = @import("std");
~struct(Entry<K, V>) { key: K, value: V }
~type(StringIntEntry = Entry<[]const u8, i32>)
~event test_entry {}
~proc test_entry|zig {
const e = StringIntEntry{ .key = "count", .value = 42 };
std.debug.print("{s} = {d}\n", .{ e.key, e.value });
}
~test_entry()
Actual
count = 42
Must contain:
count = 42Test Configuration
MUST_RUN