Skip to content

Commit

Permalink
Test that methods can be called on class definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Mouq committed Nov 3, 2014
1 parent 31e6e32 commit c5545ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion S12-class/basic.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 37;
plan 38;

=begin pod
Expand Down Expand Up @@ -142,4 +142,6 @@ eval_lives_ok 'class Test1 { class A {};}; class Test2 {class A {};};',
'add_method returns a Method object';
}

is class :: { method foo { 42 }}.foo, 42, "Can call method on class definition without parens";

# vim: ft=perl6

0 comments on commit c5545ff

Please sign in to comment.