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
# New Ticket Created by Ilya Belikin
# Please include the string: [perl #63812]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=63812 >
Hi there,
class C {
proto method Foo ($any) { ":)".say }
multi method Foo ($foo