Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

GCI - Test for RT #74300 #12

Merged
merged 1 commit into from

2 participants

@djanatyn

wrote a test for RT #74300.

@moritz moritz merged commit cbde750 into perl6:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 29, 2011
  1. @djanatyn

    RT #74300

    djanatyn authored
This page is out of date. Refresh to see the latest.
Showing with 10 additions and 1 deletion.
  1. +10 −1 S12-construction/new.t
View
11 S12-construction/new.t
@@ -1,7 +1,7 @@
use v6;
use Test;
-plan 23;
+plan 24;
class Parent {
has $.x;
@@ -112,6 +112,15 @@ is $o.x, 5, '... worked for the class Parent (other order)';
dies_ok { X.new }, 'RT #100780'
}
+# RT #74300
+{
+ class RT74300 {
+ has $.foo;
+ multi method new($) {}
+ }
+ is RT74300.new(:foo<bar>).foo, 'bar', 'multi method($) does not break attribute initialization';
+}
+
done;
# vim: ft=perl6
Something went wrong with that request. Please try again.