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

Constraints on ‘our’-scoped variables are not allowed (our Int $x) #5778

Open
p6rt opened this issue Oct 29, 2016 · 3 comments
Open

Constraints on ‘our’-scoped variables are not allowed (our Int $x) #5778

p6rt opened this issue Oct 29, 2016 · 3 comments
Labels
NYI Features not yet implemented

Comments

@p6rt
Copy link

p6rt commented Oct 29, 2016

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

Searchable as RT129986$

@p6rt
Copy link
Author

p6rt commented Oct 29, 2016

From @AlexDaniel

Code​:
our Int $x

Result​:
===SORRY!=== Error while compiling -e
Cannot put a type constraint on an 'our'-scoped variable
at -e​:1
------> our Int $x�<EOL>
  expecting any of​:
  constraint

This is the commit that added these messages
rakudo/rakudo@bfd8508

As far as I can see, there is no good reason for current behavior.

@p6rt
Copy link
Author

p6rt commented Nov 8, 2016

From @zoffixznet

On Sat, 29 Oct 2016 09​:04​:52 -0700, alex.jakimenko@​gmail.com wrote​:

This is the commit that added these messages
rakudo/rakudo@bfd8508

I think those messages existed earlier and that commit just moved them​: rakudo/rakudo@bfd8508#diff-deae5f68054ef8116f04d6cb78bc4395L1903

@p6rt
Copy link
Author

p6rt commented Nov 8, 2016

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

@p6rt p6rt added the NYI Features not yet implemented label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NYI Features not yet implemented
Projects
None yet
Development

No branches or pull requests

1 participant