Skip to content

Commit

Permalink
Test attributes can be initialized with .= when type name has ::
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Jan 23, 2017
1 parent f22a9cc commit afe080a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions S12-class/attributes.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 38;
plan 39;

# L<S12/Fancy method calls/"For a call on your own private method">

Expand Down Expand Up @@ -198,6 +198,12 @@ throws-like q[
RT129830.^attributes[1].type.gist,
'(Associative[Str])',
'.gist works on attribute types (2)';
}
}

{
my class Foo::Bar {};
lives-ok { my class { has Foo::Bar $a .= new } },
'.= ables to initialize attributes with types that has `::` in name';
}

# vim: ft=perl6 expandtab sw=4

0 comments on commit afe080a

Please sign in to comment.