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
<spider-mario> r: sub f(Int @x) {}; f([])
<p6eval> rakudo d43876: OUTPUT«Nominal type check failed for parameter
'@x'; expected Positional but got Array instead [...]
<jnthn> grr, really need to fix that to say Positional[Int]
<masak> spider-mario: the error message is misleading.
* masak submits rakudobug
The error message now mentions that 'Positional[Int]' is expected:
sub f(Int @x) {}; f( [] )
Type check failed in binding @x; expected 'Positional[Int]' but got 'Array'
in sub f at <unknown file>:1
in block <unit> at <unknown file>:1
A test was added to S14-roles/parameterized-type.t with the following commit: Raku/roast@ada98bc.
Migrated from rt.perl.org#112970 (status was 'resolved')
Searchable as RT112970$
The text was updated successfully, but these errors were encountered: