Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"of" on array doesn't satisfy parameter type checks #4575

Closed
p6rt opened this issue Sep 21, 2015 · 5 comments
Closed

"of" on array doesn't satisfy parameter type checks #4575

p6rt opened this issue Sep 21, 2015 · 5 comments

Comments

@p6rt
Copy link

@p6rt p6rt commented Sep 21, 2015

Migrated from rt.perl.org#126134 (status was 'resolved')

Searchable as RT126134$

@p6rt
Copy link
Author

@p6rt p6rt commented Sep 21, 2015

From zefram@fysh.org

$ ./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

-zefram

@p6rt
Copy link
Author

@p6rt p6rt commented Sep 1, 2016

From @zoffixznet

Appears to be fixed now.

Tests needed.

@p6rt
Copy link
Author

@p6rt p6rt commented Sep 1, 2016

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

@p6rt p6rt commented Sep 2, 2016

From @zoffixznet

Tests added in Raku/roast@87895fa

@p6rt p6rt closed this Sep 10, 2016
@p6rt
Copy link
Author

@p6rt p6rt commented Sep 10, 2016

@zoffixznet - Status changed from 'open' to 'resolved'

@p6rt p6rt added the testneeded label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant