You can gold this down to:

perl6 -e 'my int $a = 3; EVAL q|$a = 4|'

#!>Cannot find method 'qast'

On Mon, Dec 14, 2015 at 7:26 AM Zefram <perl6-bugs-follo...@perl.org> wrote:

> # New Ticket Created by  Zefram
> # Please include the string:  [perl #126900]
> # in the subject line of all future correspondence about this issue.
> # <URL: https://rt.perl.org/Ticket/Display.html?id=126900 >
>
>
> At the REPL top level, post-init assignment to a native-typed variable
> fails:
>
> > my int $a = 3
> 3
> > $a = 4
> Cannot find method 'qast'
> > my int $i
> 0
> > $i = 3
> Cannot find method 'qast'
>
> But it works fine in other situations:
>
> > sub foo() { my int $a; $a = 3 }
> sub foo () { #`(Sub|53233744) ... }
> > foo()
> 3
>
> $ perl6 -e 'my int $i; $i = 3; say $i'
> 3
>
> -zefram
>

Reply via email to