Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add tests for RT #115280

  • Loading branch information...
commit 9ed183d22eb4ea08b95b9f138072cc97b36b59c7 1 parent b73dfca
Will Coleda coke authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 S12-class/attributes.t
10 S12-class/attributes.t
View
@@ -2,7 +2,7 @@ use v6;
use Test;
-plan 22;
+plan 24;
# L<S12/Fancy method calls/"For a call on your own private method">
@@ -124,4 +124,12 @@ eval_dies_ok q[
isa_ok B.new.foo, A, 'class attribute can be initialized using .=';
}
+#RT #115280
+{
+ eval_lives_ok '(class A { has $.x }).new.x.HOW',
+ "HOW on attributes lives, custom class";
+ eval_lives_ok '(1/2).numerator.HOW',
+ "HOW on attributes lives, builtin";
+}
+
# vim: ft=perl6
Please sign in to comment.
Something went wrong with that request. Please try again.