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

temp fails to set hashes with non-string key type constraints #5057

Closed
p6rt opened this issue Jan 16, 2016 · 5 comments
Closed

temp fails to set hashes with non-string key type constraints #5057

p6rt opened this issue Jan 16, 2016 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jan 16, 2016

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

Searchable as RT127291$

@p6rt
Copy link
Author

p6rt commented Jan 16, 2016

From rightfold@gmail.com

The following code​:

  my %h{Pair};
  %h{a => 1} = 2;
  temp %h = %h.clone;

should succeed. However, it fails with the following error​:

Type check failed in binding key; expected Pair but got Str

Rakudo version​:

This is Rakudo version 2015.12 built on MoarVM version 2015.12 implementing Perl 6.c.

@p6rt
Copy link
Author

p6rt commented Aug 6, 2016

From @zoffixznet

Still present in Rakudo version 2016.07.1-88-g15ee3c3 built on MoarVM version 2016.07-11-g11e02fe, though with a slightly different error​:

  Type check failed in binding to key; expected Pair but got Str ("a\t1")

@p6rt
Copy link
Author

p6rt commented Jan 22, 2018

From @zoffixznet

On Sat, 16 Jan 2016 13​:33​:45 -0800, rightfold@​gmail.com wrote​:

The following code​:

my %h{Pair};
%h{a => 1} = 2;
temp %h = %h.clone;

should succeed. However, it fails with the following error​:

Type check failed in binding key; expected Pair but got Str

Rakudo version​:

This is Rakudo version 2015.12 built on MoarVM version 2015.12
implementing Perl 6.c.

Thank you for the report. This is now fixed in branch `post-release`.

Fix​: rakudo/rakudo@0a32e51bf58b5f9
Test​: Raku/roast@321c54f3edcd09458

@p6rt
Copy link
Author

p6rt commented Jan 22, 2018

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

@p6rt
Copy link
Author

p6rt commented Jan 22, 2018

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

@p6rt p6rt closed this as completed Jan 22, 2018
@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