Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Look in outer scopes for type var instantiation.
Fixes RT #125537.
  • Loading branch information
jnthn committed Jul 6, 2015
1 parent d9c1e26 commit 87687ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Perl6/Metamodel/GenericHOW.nqp
Expand Up @@ -27,7 +27,8 @@ class Perl6::Metamodel::GenericHOW

method instantiate_generic($obj, $type_environment) {
my $name := self.name($obj);
nqp::existskey($type_environment, $name) ?? $type_environment{$name} !! $obj
my $found := nqp::getlexrel($type_environment, $name);
nqp::isnull($found) ?? $obj !! $found
}

method compose($obj) {
Expand Down

0 comments on commit 87687ea

Please sign in to comment.