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

LTA, misleading error message when a typed array in a signature fails to bind in Rakudo #2767

Closed
p6rt opened this issue May 17, 2012 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented May 17, 2012

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

Searchable as RT112970$

@p6rt
Copy link
Author

p6rt commented May 17, 2012

From @masak

<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

@p6rt
Copy link
Author

p6rt commented Oct 5, 2014

From @usev6

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.

@p6rt
Copy link
Author

p6rt commented Oct 5, 2014

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

@p6rt
Copy link
Author

p6rt commented Oct 5, 2014

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

@p6rt p6rt closed this as completed Oct 5, 2014
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant