[perl #127291] [BUG] temp fails to set hashes with non-string key type constraints

[email protected] ("Zoffix Znet via RT")
Newsgroups perl.perl6.compiler
Message-ID <[email protected]>
On Sat, 16 Jan 2016 13:33:45 -0800, [email protected] 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:  https://github.com/rakudo/rakudo/commit/0a32e51bf58b5f9
Test: https://github.com/perl6/roast/commit/321c54f3edcd09458
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.