# New Ticket Created by Tobias Leich
# Please include the string: [perl #125129]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=125129 >
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«5Default constructor for 'Bar' only takes named
arguments in block <unit> at /tmp/FrBrn8xOI_:1»
I guess this needs to translate to something else than Any in order to make it
work:
class Foo { }; say (Foo{:12x})
rakudo-moar a34d02: OUTPUT«(Any)»