Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix enums without explicit values
  • Loading branch information
moritz committed May 12, 2012
1 parent f72c306 commit d2012e2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Perl6/Actions.pm
Expand Up @@ -2357,6 +2357,12 @@ class Perl6::Actions is HLL::Actions {
}
}
else {
unless $has_base_type {
$base_type := $*W.find_symbol(['Int']);
make_type_obj($base_type);
$has_base_type := 1;
}

$cur_key := $_<compile_time_value>;
$cur_value := $cur_value.succ();
}
Expand Down

0 comments on commit d2012e2

Please sign in to comment.