tests: fix weird CI failure with error details (#8449)
parent
8505d2ca82
commit
849bc6c3d8
|
@ -3708,7 +3708,6 @@ fn (mut c Checker) comptime_call(mut node ast.ComptimeCall) table.Type {
|
|||
if v.expr is ast.StringLiteral {
|
||||
method_name = v.expr.val
|
||||
} else {
|
||||
c.add_error_detail(v.expr.type_name())
|
||||
c.error('todo: not a string literal', node.method_pos)
|
||||
}
|
||||
f := node.sym.find_method(method_name) or {
|
||||
|
|
|
@ -19,7 +19,6 @@ vlib/v/checker/tests/comptime_call_no_unused_var.vv:15:8: error: todo: not a str
|
|||
| ^
|
||||
16 | s2 := 'x'
|
||||
17 | test.$s2()
|
||||
Details: v.ast.InfixExpr
|
||||
vlib/v/checker/tests/comptime_call_no_unused_var.vv:17:8: error: could not find method `x`
|
||||
15 | test.$s()
|
||||
16 | s2 := 'x'
|
||||
|
|
Loading…
Reference in New Issue