Skip to content

Commit ab11625

Browse files
committed
Add comment about imperfect handling of QAST::Want
compare https://irclog.perlgeek.de/perl6-dev/2016-10-03#i_13327086
1 parent 5960973 commit ab11625

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vm/jvm/QAST/Compiler.nqp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3367,6 +3367,8 @@ class QAST::CompilerJAST {
33673367
sub want($node, $type) {
33683368
my @possibles := $node.list;
33693369
my $best := nqp::atpos(@possibles, 0);
3370+
## TODO 'v' should only be used for void context here
3371+
## atm, testing for $RT_VOID leads to failing spectests
33703372
my $char := $type == $RT_INT ?? 'I' !!
33713373
$type == $RT_NUM ?? 'N' !!
33723374
$type == $RT_STR ?? 'S' !!

0 commit comments

Comments
 (0)