Skip to content

Commit

Permalink
[t/spec] test that .HOW is readonly
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.pugscode.org/pugs@30164 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information
moritz committed Mar 21, 2010
1 parent e612c3f commit 9aec248
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion S12-methods/how.t
@@ -1,8 +1,11 @@
use v6;
use Test;

plan 1;
plan 2;

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';

# vim: ft=perl6

0 comments on commit 9aec248

Please sign in to comment.