On Thu Mar 12 06:28:03 2009, ihrd wrote:
> class C {
>     proto method Foo ($any) { ":)".say }
>     multi method Foo ($foo where { $_ eq "foo"}) { "$foo".say }
> }
> C.Foo("foo"); # foo
> C.Foo("bar"); # should smile but
>                     # die with "Parameter type check failed for $foo
> in call to Foo"
> 

Fixed in git e8a8fb6 and added something very like the above as a spectest.

Thanks!

Jonathan

Reply via email to