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


<doy> r: class Foo { has Hash of Hash $.foo = {} }; Foo.new
<p6eval> rakudo c8de2e: OUTPUT«Type check failed in assignment to
'$!foo'; expected 'Hash+{TypedHash}' but got 'Hash' [...]
<doy> am i misunderstanding how this works, or is this just not
properly implemented yet
<flussence> I think typed hash/arrays aren't quite there
<masak> I don't recall seeing 'of' in working code.
<doy> okay
<doy> it just looked like it was trying to work, so i wasn't sure
<doy> heh, and running that line in rakudo's repl makes it segfault
once you exit
* masak tries to reproduce that

$ nom
> class Foo { has Hash of Hash $.foo = {} }; Foo.new
Type check failed in assignment to '$!foo'; expected
'Hash+{TypedHash}' but got 'Hash'
> /usr/local/bin/nom: line 3:  7714 Segmentation fault      
> /home/masak/ours/nom-rakudo/install/bin/perl6 "$@"

<masak> yep.
* masak submits rakudobug

Reply via email to