Skip to content

Instantly share code, notes, and snippets.

@MasterDuke17
Created February 23, 2021 20:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MasterDuke17/1d661c36ff8bc54f59a442bc81422085 to your computer and use it in GitHub Desktop.
Save MasterDuke17/1d661c36ff8bc54f59a442bc81422085 to your computer and use it in GitHub Desktop.
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