Permalink
Browse files

RT #108670, accessor name clash

  • Loading branch information...
1 parent 33e961e commit 15c94edf2b7861edd841e7f8cbf96385d19af7c7 @moritz moritz committed Jan 30, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 S12-attributes/instance.t
View
6 S12-attributes/instance.t
@@ -2,7 +2,7 @@ use v6;
use Test;
-plan 135;
+plan 136;
=begin pod
@@ -625,6 +625,10 @@ is Foo7e.new.attr, 42, "default attribute value (1)";
}
+# RT #108670
+eval_dies_ok 'my class AccessorClash { has @.a; has &.a }',
+ 'cannot have two attributes with same accessor name';
+
done();
# vim: ft=perl6

0 comments on commit 15c94ed

Please sign in to comment.