> On 20 May 2015, at 19:41, (via RT) <perl6-bugs-follo...@perl.org> wrote: > > # New Ticket Created by > # Please include the string: [perl #125226] > # in the subject line of all future correspondence about this issue. > # <URL: https://rt.perl.org/Ticket/Display.html?id=125226 > > > > --cut here-- > subtest { > lives_ok { $r.using-history }, 'using-history lives'; > subtest { > }, 'Stifling'; > }, 'History'; > --cut here-- > > Throws this exception: > > --cut here-- > perl6 -Ilib t/02-base.t > 1..1 > ok 1 - using-history lives > Type check failed in binding &subtests; expected 'Callable' but got > 'Hash' > in sub subtest at lib/Test.pm:268 > in block <unit> at t/02-base.t:642 > --cut here--
One could argue it should be a MMD lookup fail instead. But {} is not something Callable, it *is* an empty hash. $ 6 '{}.WHAT.say' (Hash) So the message seems correct. And this would appear as a case of DIHWIDT, so don’t do that. Propose to close this ticket. Liz