Subject: | Dict type doesn't notice missing Bool elements |
Given Dict[ a=>Bool, b=>Int ] a missing Int field is detected:
$ perl -MTypes::Standard=Dict,Bool,Int -we '(Dict[ a=>Bool, b=>Int ])->assert_valid({a=>1})'
{"a" => 1} did not pass type constraint "Dict[a=>Bool,b=>Int]" at -e line 1.
but a missing Bool field isn't:
perl -MTypes::Standard=Dict,Bool,Int -we '(Dict[ a=>Bool, b=>Int ])->assert_valid({b=>1})'