-
-
Save MasterDuke17/1d661c36ff8bc54f59a442bc81422085 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git src/Perl6/Actions.nqp src/Perl6/Actions.nqp | |
index e3f286503..46c5df34a 100644 | |
--- src/Perl6/Actions.nqp | |
+++ src/Perl6/Actions.nqp | |
@@ -9289,7 +9289,9 @@ class Perl6::Actions is HLL::Actions does STDActions { | |
$var.push(QAST::ParamTypeCheck.new(QAST::Op.new( | |
:op('istype_nd'), | |
QAST::Var.new( :name(get_decont_name()), :scope('local') ), | |
- QAST::WVal.new( :value($param_type) ) | |
+ QAST::WVal.new( :value($is_coercive | |
+ ?? $param_type.HOW.target_type($param_type) | |
+ !! $param_type) ) | |
))); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment