Skip Menu |
Report information
Id: 129986
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: alex.jakimenko [at] gmail.com
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



To: rakudobug [...] perl.org
Subject: Constraints on ‘our’-scoped variables are not allowed (our Int $x)
From: Aleks-Daniel Jakimenko-Aleksejev <alex.jakimenko [...] gmail.com>
Date: Sat, 29 Oct 2016 19:04:32 +0300
Download (untitled) / with headers
text/plain 393b
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 https://github.com/rakudo/rakudo/commit/bfd8508f5ceee565380da201ef25bdfb6feb2b3d

As far as I can see, there is no good reason for current behavior.
Download (untitled) / with headers
text/plain 394b
On Sat, 29 Oct 2016 09:04:52 -0700, alex.jakimenko@gmail.com wrote: Show quoted text
I think those messages existed earlier and that commit just moved them: https://github.com/rakudo/rakudo/commit/bfd8508f5ceee565380da201ef25bdfb6feb2b3d#diff-deae5f68054ef8116f04d6cb78bc4395L1903


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org