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 a/src/vm/moar/Perl6/Ops.nqp b/src/vm/moar/Perl6/Ops.nqp | |
| index 2696e24..ef70972 100644 | |
| --- a/src/vm/moar/Perl6/Ops.nqp | |
| +++ b/src/vm/moar/Perl6/Ops.nqp | |
| @@ -605,6 +605,12 @@ $ops.add_hll_op('perl6', 'p6typecheckrv', -> $qastcomp, $op { | |
| $type := $type.HOW.base_type($type); | |
| } | |
| + # A type capture | |
| + if $type.HOW.archetypes.generic { | |
| + $type := $type.HOW.instantiate_generic($type, nqp::ctxcaller(nqp::ctx())); | |
| + nqp::say($type.HOW.name($type)); | |
| + } | |
| + | |
| my @ops; | |
| my $value_res := $qastcomp.as_mast($op[0], :want($MVM_reg_obj)); | |
| my $type_res := $qastcomp.as_mast(QAST::WVal.new( :value($type) ), :want($MVM_reg_obj)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment