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

Signature with Callable type constraint deparses incorrectly #5371

Closed
p6rt opened this issue Jun 12, 2016 · 7 comments
Closed

Signature with Callable type constraint deparses incorrectly #5371

p6rt opened this issue Jun 12, 2016 · 7 comments

Comments

@p6rt
Copy link

p6rt commented Jun 12, 2016

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

Searchable as RT128392$

@p6rt
Copy link
Author

p6rt commented Jun 12, 2016

From zefram@fysh.org

:(Int $a).perl
:(Int $a)
:(Numeric $a).perl
:(Numeric $a)
:(Callable $a).perl
:($a)

The last of these is bogus​: the Callable type constraint is being
omitted from the deparsing. A sub defined with this type constraint
does in fact have the constraint take effect. Deparsing of the sub, and
the error message for static detection of violation of the constraint,
shows the signature incorrectly as above.

-zefram

@p6rt
Copy link
Author

p6rt commented Jul 6, 2016

From @MasterDuke17

Fixed in rakudo/rakudo#791

@p6rt
Copy link
Author

p6rt commented Jul 6, 2016

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

@p6rt
Copy link
Author

p6rt commented Jul 9, 2016

From @zoffixznet

Tests added​: Raku/roast@6cd55d6bea

@p6rt
Copy link
Author

p6rt commented Jul 9, 2016

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

@p6rt p6rt closed this as completed Jul 9, 2016
@p6rt
Copy link
Author

p6rt commented Jul 9, 2016

From @zoffixznet

Previous tests also added in Raku/roast#130

@p6rt
Copy link
Author

p6rt commented Jul 9, 2016

From @zoffixznet

Two sets of tests merged in​: Raku/roast@18fafbddef

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant