mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tests: fix weird CI failure with error details (#8449)
This commit is contained in:
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 {
|
if v.expr is ast.StringLiteral {
|
||||||
method_name = v.expr.val
|
method_name = v.expr.val
|
||||||
} else {
|
} else {
|
||||||
c.add_error_detail(v.expr.type_name())
|
|
||||||
c.error('todo: not a string literal', node.method_pos)
|
c.error('todo: not a string literal', node.method_pos)
|
||||||
}
|
}
|
||||||
f := node.sym.find_method(method_name) or {
|
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'
|
16 | s2 := 'x'
|
||||||
17 | test.$s2()
|
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`
|
vlib/v/checker/tests/comptime_call_no_unused_var.vv:17:8: error: could not find method `x`
|
||||||
15 | test.$s()
|
15 | test.$s()
|
||||||
16 | s2 := 'x'
|
16 | s2 := 'x'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user