Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[t/spec] Add test for RT#64654 issue, now that Rakudo seems to handle…

… it find (likely fallout from related changes a while back).

git-svn-id: http://svn.pugscode.org/pugs@27325 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
commit 40a5eeb4c5713bd0dda5dbe8f2cd32a6e01de8bf 1 parent a261d6b
jnthn authored
Showing with 10 additions and 1 deletion.
  1. +10 −1 S12-attributes/instance.t
11 S12-attributes/instance.t
View
@@ -2,7 +2,7 @@ use v6;
use Test;
-plan 126;
+plan 127;
=begin pod
@@ -304,6 +304,15 @@ is eval('Foo7e.new.attr'), 42, "default attribute value (1)";
}
+{
+ class ClosureWithself {
+ has $.cl = { self.foo }
+ method foo { 42 }
+ }
+ is ClosureWithself.new.cl().(), 42, 'use of self in closure on RHS of attr init works';
+}
+
+
# Tests for clone.
{
class CloneTest { has $.x is rw; has $.y is rw; }
Please sign in to comment.
Something went wrong with that request. Please try again.