Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
True ^^= True is Nil, so var should end up Any
  • Loading branch information
TimToady committed Sep 23, 2015
1 parent de3a3c5 commit 124aef3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion S03-metaops/hyper.t
Expand Up @@ -460,7 +460,6 @@ my @e;
=end todo_unspecced
#?niecza skip 'does not work; recurses into hash'
#?rakudo skip 'nom regression: possible spec change/improvement RT #124513'
#?DOES 2
{ # hyper dereferencing
my @array = (
Expand Down
6 changes: 2 additions & 4 deletions S03-operators/assign.t
Expand Up @@ -455,8 +455,7 @@ my @p;
is(@p[0],42, "^^= operator parses as item assignment 1");
is(@p[1],43, "^^= operator parses as item assignment 2");
$x ^^= 15;
#?rakudo todo 'unknown'
is $x, False, '^^= with two true arguments yields False';
is $x, Any, '^^= with two true arguments yields Nil -> Any';
$x ^^= 'xyzzy';
is $x, 'xyzzy', "^^= doesn't permanently falsify scalars";
}
Expand All @@ -470,8 +469,7 @@ my @p;
is(@p[0][0],42, "xor= operator parses as list assignment 1");
is(@p[0][1],43, "xor= operator parses as list assignment 2");
$x xor= 15;
#?rakudo todo 'unknown'
is $x, False, 'xor= with two true arguments yields False';
is $x, Any, 'xor= with two true arguments yields Nil -> Any';
$x xor= 'xyzzy';
is $x, 'xyzzy', "xor= doesn't permanently falsify scalars";
}
Expand Down

0 comments on commit 124aef3

Please sign in to comment.