[perl #128368] Confusion in SPESH about return

2016-07-21 Thread jn...@jnthn.net via RT
On Fri Jul 08 22:00:54 2016, c...@zoffix.com wrote: > For records, > > The tests for this ticket already exist at > https://github.com/perl6/roast/blob/a9597e6781703f012399dd5a1f988028e2279afc/integration/weird- > errors.t#L205 > > As stated in commit > https://github.com/perl6/roast/commit/a9597

Re: [perl #128368] Confusion in SPESH about return

2016-06-10 Thread Elizabeth Mattijsen
It appears we can golf this down further: m: class A { method foo { return 42 } }; my $a = A.new; for ^157 { $a.foo } # still smaller golf, no attributes neede rakudo-moar 87e91c: ( no output ) m: class A { method foo { return 42 } }; my $a = A.new; for ^158 { $a.foo } # at 158 it fai

[perl #128368] Confusion in SPESH about return

2016-06-10 Thread via RT
# New Ticket Created by Elizabeth Mattijsen # Please include the string: [perl #128368] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=128368 > m: class A { has $.foo; method foo { return $!foo } }; my $a = A.new(foo => 42);