Permalink
Browse files

Remove bogus defined test in sink handling.

This means that Failure is now correctly sunk.
  • Loading branch information...
jnthn committed Jan 10, 2013
1 parent 45c445a commit 8ca20dba80d5ba80cad56f950d9e85e434420a68
Showing with 3 additions and 8 deletions.
  1. +3 −8 src/Perl6/Actions.pm
View
@@ -59,14 +59,9 @@ class Perl6::Actions is HLL::Actions does STDActions {
QAST::Op.new(:op<isconcrete>,
QAST::Var.new(:$name, :scope<local>),
),
- QAST::Op.new(:op<if>,
- QAST::Op.new(:op<can>,
- QAST::Var.new(:$name, :scope<local>),
- QAST::SVal.new(:value('sink')),
- ),
- QAST::Op.new(:op<defined>,
- QAST::Var.new(:$name, :scope<local>),
- )
+ QAST::Op.new(:op<can>,
+ QAST::Var.new(:$name, :scope<local>),
+ QAST::SVal.new(:value('sink')),
)
),
QAST::Op.new(:op<callmethod>, :name<sink>,

0 comments on commit 8ca20db

Please sign in to comment.