Skip to content

Commit

Permalink
Add a test for RT #77200
Browse files Browse the repository at this point in the history
  • Loading branch information
Mouq committed Feb 2, 2015
1 parent 6806fcd commit 85b1707
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion S12-construction/new.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 25;
plan 26;

class Parent {
has $.x;
Expand Down Expand Up @@ -141,6 +141,13 @@ is $o.x, 5, '... worked for the class Parent (other order)';
is RT74300.new(:foo<bar>).foo, 'bar', 'multi method($) does not break attribute initialization';
}

# RT #77200
{
my class RT77200 { }
lives_ok { my RT77200 $lex .= new },
"Can call .=new on a variable of a lexical type";
}

done;

# vim: ft=perl6

0 comments on commit 85b1707

Please sign in to comment.