# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #118227]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=118227 >


<masak> r: class A {}; my %h{A} = A.new => 2; my %h2{A} = %h >>+>> 40; say %h2
<camelia> rakudo 25a0b3: OUTPUT«Nominal type check failed for
parameter 'key'; expected A but got Str instead [...]»
<masak> how reasonable are my expectations above? I expect that to work.
<masak> (i.e. produce '(A.new() => 42).hash' as output)
<pmichaud> masak: I suspect that hypering doesn't know about typed hash keys
<masak> I suspect so too.
<pmichaud> since it was written before we had them :)
<masak> but... it's not unreasonable to have that work, is it? :)
<pmichaud> on its face it doesn't strike me as unreasonable
* masak submits rakudobug
<pmichaud> the devil may be in the details here, though
<pmichaud> I consider it a valid rakudobug for the moment, yes.

Reply via email to