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
<masak> nom: sub foo(True) { say "OH HAI" }; foo(False)
<p6eval> nom 2b6f86: OUTPUT«Nominal type check failed for parameter
''; expected Bool but got Bool instead in sub foo [...]
<masak> o.O
* masak submits rakudobug
(1) This should conceivably work.
(2) The error message is mind-boggling.
<masak> nom: sub foo(True) { say "OH HAI" }; foo(False)
<p6eval> nom 2b6f86: OUTPUT«Nominal type check failed for parameter
''; expected Bool but got Bool instead in sub foo [...]
<masak> o.O
* masak submits rakudobug
(1) This should conceivably work.
(2) The error message is mind-boggling.
Now:
sub foo(True) { say "OH HAI" }; foo(False)
OH HAI
Which is a little confusing, though under smart-match semantics of
True/False seems to be the correct thing. Tagging testneeded.
Migrated from rt.perl.org#107348 (status was 'resolved')
Searchable as RT107348$
The text was updated successfully, but these errors were encountered: