Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[whatever.t] Test for RT 79166
  • Loading branch information
kyleha committed Dec 23, 2010
1 parent 5760b39 commit 84eeb91
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion S02-builtin_data_types/whatever.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 71;
plan 73;

# L<S02/Built-In Data Types/"The * character as a standalone term captures the notion of">
# L<S02/Native types/"If any native type is explicitly initialized to">
Expand Down Expand Up @@ -223,6 +223,15 @@ eval_lives_ok '{*.{}}()', '{*.{}}() lives';
dies_ok { &infix:<R+>(*, 42) }, '&infix:<+>(*, 42) doesn\'t make a closure';
}

# RT 79166
{
my $rt79166 = *;
isa_ok $rt79166, Whatever, 'assignment of whatever still works';
$rt79166 = 'RT 79166';
#?rakudo todo 'RT 79166'
is $rt79166, 'RT 79166', 'assignment to variable with whatever in it';
}

done_testing;

# vim: ft=perl6

0 comments on commit 84eeb91

Please sign in to comment.