# New Ticket Created by  [email protected] 
# Please include the string:  [perl #124444]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=124444 >


$ git describe
Vladivostok-139-g95411f5

Test fails from the command line:

    $ prove -v -e t/fudgeandrun t/spec/S03-smartmatch/array-hash.t;
    Type check failed in binding &call; expected 'Callable' but got 
'Method+{<anon>}'
      in block <unit> at t/spec/S03-smartmatch/array-hash.t:8

Checking the the REPL, comparing array and hash literals works:

    $ perl6;

    > <a> ~~ { a => 'b', c => Mu }
    True

This fails with a variable, however:

    > my %h = (a => 'b', c => Mu);
    a => b, c => (Mu)
    > %h.perl
    {:a("b"), :c(Mu)}<>

    > ['a']      ~~ %h
    use of uninitialized value of type Any in numeric context
    Type check failed in binding &call; expected 'Callable' but got 
'Method+{<anon>}'
      in block <unit> at <unknown file>:1


#NYPerlHackathon

-- 
Steven Lembark                                           3646 Flora Pl
Workhorse Computing                                 St Louis, MO 63110
[email protected]                                    +1 888 359 3508

Reply via email to