You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"
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.
Migrated from rt.perl.org#63812 (status was 'resolved')
Searchable as RT63812$
The text was updated successfully, but these errors were encountered: