Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

state var in where clause not properly initialised #5777

Closed
p6rt opened this issue Oct 28, 2016 · 3 comments
Closed

state var in where clause not properly initialised #5777

p6rt opened this issue Oct 28, 2016 · 3 comments

Comments

@p6rt
Copy link

p6rt commented Oct 28, 2016

Migrated from rt.perl.org#129984 (status was 'resolved')

Searchable as RT129984$

@p6rt
Copy link
Author

p6rt commented Oct 28, 2016

From @gfldex

my $a where state $ = say "foo";
# OUTPUT​: «»
# expected​: «foo␤»

# the following does work
my $b where $ = say "foo";

@p6rt
Copy link
Author

p6rt commented Oct 29, 2016

From @zoffixznet

Closing per https://irclog.perlgeek.de/perl6-dev/2016-10-29#i_13483753

On Fri Oct 28 10​:57​:23 2016, gfldex wrote​:

my $a where state $ = say "foo";
# OUTPUT​: «»
# expected​: «foo␤»

# the following does work
my $b where $ = say "foo";

@p6rt p6rt closed this as completed Oct 29, 2016
@p6rt
Copy link
Author

p6rt commented Oct 29, 2016

@zoffixznet - Status changed from 'new' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant