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

type check failed in binding to $value in loop #6057

Closed
p6rt opened this issue Feb 5, 2017 · 4 comments
Closed

type check failed in binding to $value in loop #6057

p6rt opened this issue Feb 5, 2017 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Feb 5, 2017

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

Searchable as RT130719$

@p6rt
Copy link
Author

p6rt commented Feb 5, 2017

From jeff.linahan@gmail.com

I type this into the REPL​:

loop (my $i = 10; $i > 0; $i--) { say $i; }

It loops and then crashes​:

10
9
8
7
6
5
4
3
2
1
Type check failed in binding to $value; expected Any but got Mu (Mu)
  in any interactive at src/Perl6/Compiler.nqp line 62

But put it in a file and and it finishes fine. This is Rakudo version
2017.01 built on MoarVM version 2017.01 implementing Perl 6.c.

@p6rt
Copy link
Author

p6rt commented Feb 5, 2017

From @zoffixznet

On Sat, 04 Feb 2017 16​:36​:21 -0800, jeff.linahan@​gmail.com wrote​:

I type this into the REPL​:

loop (my $i = 10; $i > 0; $i--) { say $i; }

It loops and then crashes​:

10
9
8
7
6
5
4
3
2
1
Type check failed in binding to $value; expected Any but got Mu (Mu)
in any interactive at src/Perl6/Compiler.nqp line 62

But put it in a file and and it finishes fine. This is Rakudo version
2017.01 built on MoarVM version 2017.01 implementing Perl 6.c.

Thank you for the report. This is now fixed.

Fix​: rakudo/rakudo@1b99196141
Test​: Raku/roast@04fa01361b

@p6rt
Copy link
Author

p6rt commented Feb 5, 2017

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Feb 5, 2017

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

@p6rt p6rt closed this as completed Feb 5, 2017
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant