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
> > > > 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 sensical, it violates its own :D here:
> > > > p6 'say  class { has Int:D $.foo is default(0) }.new.foo'
> > > (Int:D)
> > 
> > The first case was resolved with RT#131387
> > 
> > The second case seems fixed.
> > 
> > Tests specifically for the second case still needed.
> > 
> > 
> > 
> > 
> > So maybe combine this with the latter and make a ruling on 
> 
> 
> Ignore that last sentence, I was going to suggest RT#126296 but...

Second case fixed with commit 
https://github.com/rakudo/rakudo/commit/148ba7f2e4de8f33e8436267a4b0c9042a171d82
Testneeded

Reply via email to