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

STORE on native array dies when array with holes is passed #2912

Closed
Altai-man opened this issue May 21, 2019 · 2 comments
Closed

STORE on native array dies when array with holes is passed #2912

Altai-man opened this issue May 21, 2019 · 2 comments
Assignees

Comments

@Altai-man
Copy link
Member

The Problem

my @foo;
@foo[1] = 5;
my int @bar = @foo;

dies with an uninformative error.

When default is present, it still dies:

my @foo is default(42);
@foo[1] = 5;
my int @bar = @foo;

Expected Behavior

For code to work.

Actual Behavior

Cannot unbox a type object (VMNull) to an int.
  in block <unit> at -e line 1

Steps to Reproduce

➜  ~ perl6 -e 'my @foo; @foo[1] = 42; my int @bar = @foo'
Cannot unbox a type object (VMNull) to an int.
  in block <unit> at -e line 1

Environment

  • Operating system: a linux box
  • Compiler version (perl6 -v): This is Rakudo version 2019.03 built on MoarVM version 2019.03
@Altai-man
Copy link
Member Author

@Altai-man
Copy link
Member Author

Altai-man commented May 23, 2019

cast @lizmat
I have overestimated my free time, so don't mind if you take over this issue, according to https://colabti.org/irclogger/irclogger_log/perl6?date=2019-05-21#l443. Good luck.

@lizmat lizmat self-assigned this May 27, 2019
@lizmat lizmat closed this as completed in ef76601 May 27, 2019
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

2 participants