Skip to content

Commit

Permalink
checker: fix ./v -d trace_checker -usecache -o x cmd/v
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Sep 16, 2023
1 parent bb95a27 commit 248aec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/v/checker/checker.v
Expand Up @@ -1957,7 +1957,7 @@ fn (mut c Checker) check_loop_label(label string, pos token.Pos) {

fn (mut c Checker) stmt(mut node ast.Stmt) {
$if trace_checker ? {
ntype := typeof(node).replace('v.ast.', '')
ntype := typeof(*node).replace('v.ast.', '')
eprintln('checking: ${c.file.path:-30} | pos: ${node.pos.line_str():-39} | node: ${ntype} | ${node}')
}
c.expected_type = ast.void_type
Expand Down

0 comments on commit 248aec3

Please sign in to comment.