Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make sure @ and % sigil flags are set. Resolves bug noticed by pmicha…
…ud++.
  • Loading branch information
jnthn committed Jul 1, 2011
1 parent bef372d commit e366355
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Perl6/SymbolTable.pm
Expand Up @@ -384,6 +384,12 @@ class Perl6::SymbolTable is HLL::Compiler::SerializationContextBuilder {
if %param_info<bind_accessor> {
$flags := $flags + $SIG_ELEM_BIND_PUBLIC_ATTR;
}
if %param_info<sigil> eq '@' {
$flags := $flags + $SIG_ELEM_ARRAY_SIGIL;
}
elsif %param_info<sigil> eq '%' {
$flags := $flags + $SIG_ELEM_HASH_SIGIL;
}
pir::repr_bind_attr_int__vPPsI($parameter, $par_type, '$!flags', $flags);
$set_attrs.push(self.set_attribute_typed($parameter, $par_type,
'$!flags', $flags, int));
Expand Down

0 comments on commit e366355

Please sign in to comment.