tobyink/p5-type-tiny — pull request #3 by xenoterracide (2013-07-16 23:00:36+00:00)
Title: class types don't seem to work right in a named params situation and possible slurpy bug

failing tests for 2 problems I've found.

my $chk = compile slurpy Dict[
foo => class_type { class => 'Test' },
bar => class_type { class => 'Test' },
baz => class_type { class => 'Test' },
];

doesn't work as expected. Also I thought somewhere `slurpy` was documented to be able to autocoerce as hashref or hash to a hashref. meaning that calling `$obj->mymethod({ foo => 'bar' })` should work equally as well as `$obj->mymethod( foo => 'bar' )`. can't find this doc right now, maybe it was in a blog post, or I'm remembering incorrectly (or just plain wrong). feel free to rebase-away the 2nd patch if that's the case.