tests: fix weird CI failure with error details (#8449)

pull/8450/head
Nick Treleaven 2021-01-30 16:53:39 +00:00 committed by GitHub
parent 8505d2ca82
commit 849bc6c3d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 2 deletions

View File

@ -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 {

View File

@ -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'