Sema: further enhance explanation of why expr is evaluated at comptime

This commit is contained in:
Veikka Tuominen
2022-10-27 19:31:45 +03:00
parent c389f8800b
commit c3b85e4e2f
6 changed files with 181 additions and 73 deletions

View File

@@ -204,7 +204,7 @@ pub fn addCases(ctx: *TestContext) !void {
, &[_][]const u8{
":3:12: error: unable to resolve comptime value",
":3:12: note: argument to function being called at comptime must be comptime-known",
":2:55: note: generic function is instantiated with a comptime-only return type",
":2:55: note: expression is evaluated at comptime because the generic function was instantiated with a comptime-only return type",
});
}