Skip to content

Commit

Permalink
Don't try to compile-time analyze dispatches involving generic types.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Sep 28, 2011
1 parent f80dca3 commit b7316c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Perl6/Optimizer.pm
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ class Perl6::Optimizer {
if pir::isa($type, 'Undef') {
$possible := 0;
}
elsif $type.HOW.archetypes.generic {
$possible := 0;
}
else {
my $prim := pir::repr_get_primitive_type_spec__IP($type);
@types.push($type);
Expand Down

0 comments on commit b7316c1

Please sign in to comment.