1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

gen: fix compilter_test.v error on windows

This commit is contained in:
yuyi 2020-05-04 16:09:49 +08:00 committed by GitHub
parent 4b3ce79e84
commit cd5dccd855
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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