From 849bc6c3d8e77e671a0e086da4ffc501be8cc11b Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Sat, 30 Jan 2021 16:53:39 +0000 Subject: [PATCH] tests: fix weird CI failure with error details (#8449) --- vlib/v/checker/checker.v | 1 - vlib/v/checker/tests/comptime_call_no_unused_var.out | 1 - 2 files changed, 2 deletions(-) diff --git a/vlib/v/checker/checker.v b/vlib/v/checker/checker.v index 35375eae08..21e26e5a5e 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -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 { diff --git a/vlib/v/checker/tests/comptime_call_no_unused_var.out b/vlib/v/checker/tests/comptime_call_no_unused_var.out index 072c308100..17aae7c95a 100644 --- a/vlib/v/checker/tests/comptime_call_no_unused_var.out +++ b/vlib/v/checker/tests/comptime_call_no_unused_var.out @@ -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'