Skip to content

Commit c5545ff

Browse files
committed
Test that methods can be called on class definitions
1 parent 31e6e32 commit c5545ff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

S12-class/basic.t

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use v6;
22

33
use Test;
44

5-
plan 37;
5+
plan 38;
66

77
=begin pod
88
@@ -142,4 +142,6 @@ eval_lives_ok 'class Test1 { class A {};}; class Test2 {class A {};};',
142142
'add_method returns a Method object';
143143
}
144144

145+
is class :: { method foo { 42 }}.foo, 42, "Can call method on class definition without parens";
146+
145147
# vim: ft=perl6

0 commit comments

Comments
 (0)