Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Improve error reporting when we find a PAST node inside a QAST tree.
  • Loading branch information
jnthn committed Jul 2, 2012
1 parent 2e6ad4a commit a39b82e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/QAST/Compiler.nqp
Expand Up @@ -1111,7 +1111,9 @@ class QAST::Compiler is HLL::Compiler {
}

multi method as_post($unknown) {
nqp::die("Unknown QAST node type " ~ $unknown.HOW.name($unknown));
# XXX pir::typeof for now to catch accidental PAST nodes while we
# transition stuff to 6model fully.
nqp::die("Unknown QAST node type " ~ pir::typeof__SP($unknown));
}
}

0 comments on commit a39b82e

Please sign in to comment.