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

More generic arguments should be acceptable for blocks supplied as closure parameters #3609

Open
p6rt opened this issue Dec 17, 2014 · 3 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Dec 17, 2014

Migrated from rt.perl.org#123445 (status was 'open')

Searchable as RT123445$

@p6rt
Copy link
Author

p6rt commented Dec 17, 2014

From @hoelzro

For example​:

sub doing-stringy-thing(&action​:(Str)) {
  action 'Hello';
}

The following fails​:

doing-stringy-thing(-> $value {});

Even though $value can be any Mu (which all Strs are), the above code doesn't type check.

@p6rt
Copy link
Author

p6rt commented Dec 3, 2017

From @AlexDaniel

Still reproducible (2017.11,HEAD(e5b660e)), but I don't think that's the direction the information should flow.

I think this ticket is rejectable.
On 2014-12-16 20​:26​:58, rob@​hoelz.ro wrote​:

For example​:

sub doing-stringy-thing(&action​:(Str)) {
action 'Hello';
}

The following fails​:

doing-stringy-thing(-> $value {});

Even though $value can be any Mu (which all Strs are), the above code
doesn't type check.

@p6rt
Copy link
Author

p6rt commented Dec 3, 2017

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

@p6rt p6rt added the at_larry 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