[perl #78676] [BUG] Using the special ClassName{ :key($value) } syntax inside .new doesn't work in Rakudo

2015-12-18 Thread jn...@jnthn.net via RT
On Thu May 07 02:51:39 2015, FROGGS.de wrote: > class Foo { has $.x is rw }; class Bar is Foo { }; my Foo $u .= > new(:5x); say $u.x; $u = Bar.new(Foo{:12x}); > rakudo-moar a34d02: OUTPUT«5␤Default constructor for 'Bar' only takes > named arguments␤ in block at /tmp/FrBrn8xOI_:1␤␤» > > I guess t

Re: [perl #78676] [BUG] Using the special ClassName{ :key($value) } syntax inside .new doesn't work in Rakudo

2014-02-26 Thread Carl Mäsak
On Wed, Feb 26, 2014 at 1:50 AM, Will Coleda via RT wrote: > On Thu Oct 28 14:41:06 2010, masak wrote: >> rakudo: class A { has $.x; method foo { say $!x } }; class B >> is A { has $.x; method bar { say $!x } }; B.new(:x(42), A{ :x(5) }) >> rakudo 479650: OUTPUT«flattened parameters must be a ha

[perl #78676] [BUG] Using the special ClassName{ :key($value) } syntax inside .new doesn't work in Rakudo

2014-02-25 Thread Will Coleda via RT
On Thu Oct 28 14:41:06 2010, masak wrote: > rakudo: class A { has $.x; method foo { say $!x } }; class B > is A { has $.x; method bar { say $!x } }; B.new(:x(42), A{ :x(5) }) > rakudo 479650: OUTPUT«flattened parameters must be a hash or > array [...] > jnthn: whoz op with that? > rakudo: class

[perl #78676] [BUG] Using the special ClassName{ :key($value) } syntax inside .new doesn't work in Rakudo

2010-10-28 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #78676] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=78676 > rakudo: class A { has $.x; method foo { say $!x } }; class B is A { has $.x; method bar