-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[t] merge xx-uncategorized/optional_copy.t into S06-traits/misc.t, an…
…d moved lexical-and-in-inner-block.t to spec/ git-svn-id: http://svn.pugscode.org/pugs@22461 c213334d-75ef-0310-aa23-eaa082d1ae64
- Loading branch information
moritz
committed
Sep 29, 2008
1 parent
0ffe077
commit 26e3caa
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
use v6; | ||
|
||
|
||
use Test; | ||
|
||
plan 2; | ||
|
||
sub f($n) | ||
{ | ||
my $a = [$n]; | ||
|
||
{ | ||
is($a[0], $n, "Testing for a lexical variable inside a block.") | ||
} | ||
} | ||
|
||
my $n; | ||
for 2..3 -> $n { | ||
# TEST*2 | ||
f($n); | ||
} | ||
|
||
|
||
|