From cd5dccd8551a40e98f7513f5974af3bde72503bb Mon Sep 17 00:00:00 2001 From: yuyi Date: Mon, 4 May 2020 16:09:49 +0800 Subject: [PATCH] gen: fix compilter_test.v error on windows --- vlib/v/gen/fn.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/gen/fn.v b/vlib/v/gen/fn.v index 5bed0118f4..51bcb56409 100644 --- a/vlib/v/gen/fn.v +++ b/vlib/v/gen/fn.v @@ -472,7 +472,7 @@ fn (mut g Gen) fn_call(node ast.CallExpr) { } } else if g.pref.is_debug && node.name == 'panic' && g.fn_decl.name != '__as_cast' { paline := node.pos.line_nr + 1 - pafile := g.fn_decl.file + pafile := g.fn_decl.file.replace('\\', '/') pafn := g.fn_decl.name.after('.') mut pamod := g.fn_decl.name.all_before_last('.') if pamod == pafn {