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
type constraints to Array[Pair] don't work when precompiled #6645
Comments
From @lefthThe following function runs fine when it's not defined in an external file: our sub get-array(--> Array[Pair]) { But when if you put the above code in a module and run it with: The output is: Tested with: |
From @lefthI just checked, and got the same result on Rakudo version 2017.11 built on Type check failed for return value; expected Array[Pair] but got On Fri, Dec 1, 2017 at 6:00 PM Dan Zwell <dan@zwell.net> wrote:
|
From @lefthA git bisect showed that this error began in commit On Fri, Dec 1, 2017 at 6:00 PM perl6 via RT <perl6-bugs-followup@perl.org>
|
From @zoffixznetOn Wed, 06 Dec 2017 01:59:42 -0800, dan@zwell.net wrote:
These two tickets have the same symptoms: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=128287#ticket-history |
The RT System itself - Status changed from 'new' to 'open' |
From @lefthThanks for finding that. Can we close this duplicate bug? Issue #128287 has On Wed, Dec 13, 2017 at 11:56 PM Zoffix Znet via RT <
|
From @AlexDanielWe can, but I'd much rather have this particular case tested (and to make sure that it is, we'll close it with tests once the issue is resolved). For example, here's this interesting bit: https://github.com/rakudo/rakudo/blob/master/src/core/core_prologue.pm#L2 : my class Pair { ... } # must be first for some reason I don't know if it's related to this issue, but Pairs are weird for some reason. Adding a test won't hurt for sure. On 2017-12-13 23:33:43, dan@zwell.net wrote:
|
From @AlexDanielOh, by the way. The issue goes much farther than 2015.12, so the underlying issue is not a regression. On 2017-12-13 23:42:11, alex.jakimenko@gmail.com wrote:
|
From @zoffixznetAnother related ticket: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=127309 |
Migrated from rt.perl.org#132525 (status was 'open')
Searchable as RT132525$
The text was updated successfully, but these errors were encountered: