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
<moritz> r: proto f(Int $x) {*}; multi f($) { say 'default' }; f 'foo'
<p6eval> rakudo 55dbc0: OUTPUT«default»
<moritz> bug!
* masak submits rakudobug
<moritz> it should check the proto signature, but doesn't
<moritz> r: proto f(Int $x) {*}; multi f($) { say 'default' }; f 'foo'
<p6eval> rakudo 55dbc0: OUTPUT«default»
<moritz> bug!
* masak submits rakudobug
<moritz> it should check the proto signature, but doesn't
It's now detected correctly, at compile time even.
proto f(Int $x) {*}; multi f($) { say 'default' }; f 'foo'
CHECK FAILED:
Calling proto of 'f' will never work with argument types (str) (line 1)
Expected: :(Int $x)
Migrated from rt.perl.org#116164 (status was 'resolved')
Searchable as RT116164$
The text was updated successfully, but these errors were encountered: