Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
RT #102244, native ints leaking through in assginment
  • Loading branch information
moritz committed Oct 26, 2011
1 parent 7bf7582 commit 4cafc7d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion S02-types/native.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 17;
plan 18;

{
my int $x;
Expand Down Expand Up @@ -60,4 +60,11 @@ plan 17;
is h($I), 42, 'routine-entry Int autounboxing';
}

#?rakudo skip 'RT #102244'
{
my int $x;
my $gist = ($x = 3).gist;
is $gist, 3, 'Can call a method on the result of assignment to int-typed var';
}

# vim: ft=perl6

0 comments on commit 4cafc7d

Please sign in to comment.