Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #4 from kboga/master
Fix for using a type object in string context.
  • Loading branch information
kboga committed Jul 26, 2011
2 parents 97a2584 + afa3b69 commit a96302b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions S04-statements/for.t
Expand Up @@ -283,15 +283,15 @@ class TestClass{ has $.key is rw };

{
my $a = '';
for 1..3, 4..6 { $a ~= $_.WHAT };
for 1..3, 4..6 { $a ~= $_.WHAT.gist };
is($a, 'Int()Int()Int()Int()Int()Int()', 'List context');

$a = '';
for [1..3, 4..6] { $a ~= $_.WHAT };
for [1..3, 4..6] { $a ~= $_.WHAT.gist };
is($a, 'Array()', 'List context');

$a = '';
for [1..3], [4..6] { $a ~= $_.WHAT };
for [1..3], [4..6] { $a ~= $_.WHAT.gist };
is($a, 'Array()Array()', 'List context');
}

Expand Down

0 comments on commit a96302b

Please sign in to comment.