[perl #126318] [BUG] trait 'is default' on attributes has no effect

2018-04-07 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
Tests in https://github.com/perl6/roast/commit/ce1a5a2e6b5b199c0df69a83cf66f1b830ee47e8 and https://github.com/perl6/roast/commit/38c9dc5fd5339ed434438eb58bae07e7fdd31a1d Closing. On 2018-03-12 06:59:31, jan-olof.hen...@bredband.net wrote: > On Wed, 13 Sep 2017 19:17:16 -0700, b...@abrij.org

[perl #126318] [BUG] trait 'is default' on attributes has no effect

2018-03-12 Thread Jan-Olof Hendig via RT
On Wed, 13 Sep 2017 19:17:16 -0700, b...@abrij.org wrote: > On Wed, 13 Sep 2017 19:15:36 -0700, b...@abrij.org wrote: > > On Fri, 16 Oct 2015 00:54:21 -0700, larry wrote: > > > On Sat Oct 10 08:33:13 2015, FROGGS.de wrote: > > > > say class { has Int $.foo is default(0) }.new.foo > > > >

[perl #126318] [BUG] trait 'is default' on attributes has no effect

2017-09-13 Thread Brian S. Julin via RT
On Wed, 13 Sep 2017 19:15:36 -0700, b...@abrij.org wrote: > On Fri, 16 Oct 2015 00:54:21 -0700, larry wrote: > > On Sat Oct 10 08:33:13 2015, FROGGS.de wrote: > > > say class { has Int $.foo is default(0) }.new.foo > > > rakudo-moar 025ec1: OUTPUT«(Int)␤» > > > > > > class Foo { has Int $.foo is

[perl #126318] [BUG] trait 'is default' on attributes has no effect

2015-10-16 Thread Larry Wall via RT
On Sat Oct 10 08:33:13 2015, FROGGS.de wrote: > say class { has Int $.foo is default(0) }.new.foo > rakudo-moar 025ec1: OUTPUT«(Int)␤» > > class Foo { has Int $.foo is default(0) }; say Foo.new.foo > rakudo-moar 025ec1: OUTPUT«(Int)␤» > > I would expect that foo is zero in both cases. Even less

[perl #126318] [BUG] trait 'is default' on attributes has no effect

2015-10-10 Thread via RT
# New Ticket Created by Tobias Leich # Please include the string: [perl #126318] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126318 > say class { has Int $.foo is default(0) }.new.foo rakudo-moar 025ec1: OUTPUT«(Int)␤»