Skip to content

Commit

Permalink
Fix "class A is B{ ... }" LTA error
Browse files Browse the repository at this point in the history
Another partial fix to R#2052
  • Loading branch information
lizmat committed Jul 12, 2018
1 parent 1956df2 commit 21eb168
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/traits.pm6
Expand Up @@ -60,6 +60,9 @@ multi sub trait_mod:<is>(Mu:U $type, :$hidden!) {
multi sub trait_mod:<is>(Mu:U $type, Mu :$array_type!) {
$type.^set_array_type($array_type);
}
multi sub trait_mod:<is>(Mu:U $type, Mu:U $parent, Block) {
X::Syntax::ParentAsHash.new(:$parent).throw;
}
multi sub trait_mod:<is>(Mu:U $type, Mu:U $parent, Hash) {
X::Syntax::ParentAsHash.new(:$parent).throw;
}
Expand Down

0 comments on commit 21eb168

Please sign in to comment.