#'error unable to resolve comptime value' inside test
1 messages · Page 1 of 1 (latest)
error: unable to resolve comptime value
try expectEqual(1, result.len);
~~~~~~^~~~
note: argument to parameter with comptime only type must be comptime known
(forgot to post actual error, my bad)
Issue is that the first argument is a comptime_int, and the second argument has a type @TypeOf(expected)
So you're trying to pass a runtime value to a comptime only argument
Fix would be to make the first argument be @as(usize, 1)
Np. There is an issue open for this btw
oh, is this behavior going to change?
alright, good to know
@verbal heath sorry to bump this, but I ran into this. could you link the github issue?