Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add test for RT #76928
  • Loading branch information
Mouq committed Mar 12, 2015
1 parent 966d85b commit e7442ea
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion S12-methods/how.t
@@ -1,11 +1,17 @@
use v6;
use Test;

plan 2;
plan 3;

lives_ok { 4.HOW.HOW }, 'Can access meta class of meta class';

eval_dies_ok 'my $x; ($x = "hi").HOW = Block;',
'Cannot assign to .HOW';

# RT #76928
{
sub RT76928(%h?) { %h.HOW }
lives_ok { RT76928() }, 'Can call .HOW on an optional sub parameter';
}

# vim: ft=perl6

0 comments on commit e7442ea

Please sign in to comment.