tests: fix CI failing for builtin __as_cast
parent
242670a33d
commit
71a92eb87b
|
@ -479,11 +479,14 @@ fn (mut g Gen) fn_call(node ast.CallExpr) {
|
|||
}
|
||||
g.write('))')
|
||||
}
|
||||
} else if g.pref.is_debug && node.name == 'panic' {
|
||||
} 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
|
||||
pafn := g.fn_decl.name.after('.')
|
||||
pamod := g.fn_decl.name.all_before_last('.')
|
||||
mut pamod := g.fn_decl.name.all_before_last('.')
|
||||
if pamod == pafn {
|
||||
pamod == 'builtin'
|
||||
}
|
||||
g.write('panic_debug($paline, tos3("$pafile"), tos3("$pamod"), tos3("$pafn"), ')
|
||||
g.call_args(node.args, node.expected_arg_types)
|
||||
g.write(')')
|
||||
|
|
|
@ -15,7 +15,7 @@ fn test_all() {
|
|||
}
|
||||
for test in tests {
|
||||
path := os.join_path(dir, test).replace('\\', '/')
|
||||
print(test + ' ')
|
||||
print(path + ' ')
|
||||
program := path.replace('.vv', '.v')
|
||||
os.cp(path, program) or {
|
||||
panic(err)
|
||||
|
|
Loading…
Reference in New Issue