Permalink
Browse files

Make &-sigiled variables act like scalars also (they don't flatten).

  • Loading branch information...
1 parent 7680ab4 commit 43e22dbe86fabe56f1a377a39e3fed627a2d6423 @pmichaud pmichaud committed Feb 27, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Perl6/Actions.pm
View
@@ -769,7 +769,7 @@ sub declare_variable($/, $past, $sigil, $twigil, $desigilname, $trait_list) {
my $vivipast := PAST::Op.new( $cont, 'rw', $true, :pirop('setprop'));
# If it's a scalar, mark it as scalar (non-flattening)
- if $sigil eq '$' {
+ if $sigil eq '$' || $sigil eq '&' {
$vivipast := PAST::Op.new($vivipast,'scalar',$true,:pirop('setprop'));
}

0 comments on commit 43e22db

Please sign in to comment.