On Thu Jan 29 14:47:58 2015, [email protected] wrote:
> Noticed during an IRC discussion, the real weirdness starts at
> http://irclog.perlgeek.de/perl6/2015-01-29#i_10028280 and goes to
> 22:00 .
>
> Another clue:
>
> perl6 -e 'subset Foo where {say "«$_.perl()»"}; my Foo $foo = 1;'
> «1»
>
> perl6 -e 'subset Foo where {say "«$_.perl()»"}; my Foo $foo = 1; say
> $foo;'
> «Obsolete»
> «1»
> 1
>
> perl6 -e 'subset Foo where {say "«$_.perl()»"}; my Foo $foo = 1; say
> "$foo";'
> «1»
> 1
This looks good now:
$ perl6 -e 'subset Foo where {say "«$_.perl()»"}; my Foo $foo = 1; say $foo'
«1»
1
I added two tests (evaluations for the irclog above) to S12-subset/subtypes.t
with commit https://github.com/perl6/roast/commit/6082102ca7.
> Also, anything precompiled with a subset constraint seems to segfault
> when assigned to (subset Foo; my Foo $foo = 42;). I'll file that as a
> separate bug if fixing this one doesn't resolve that issue as well.
Did you report the issue with precomp? If so, this ticket can be closed.
Christian