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
$ ./perl6 -e 'sub aa (Int @a) { say "hi"; }; my @a of Int; aa(@a)'
Type check failed in binding @a; expected 'Positional[Int]' but got 'Array[Int]'
in sub aa at -e:1
in block <unit> at -e:1
Those types look pretty matching to me. The code works perfectly well
if the array's element type is expressed in the prefix form:
$ ./perl6 -e 'sub aa (Int @a) { say "hi"; }; my Int @a; aa(@a)'
hi
Migrated from rt.perl.org#126134 (status was 'resolved')
Searchable as RT126134$
The text was updated successfully, but these errors were encountered: