# New Ticket Created by Elizabeth Mattijsen
# Please include the string: [perl #126050]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=126050 >
[23:19:47] m: sub a { .Int with $^a }; a(Str).perl.say # somehow
I expect
On Thu Oct 23 04:51:47 2014, masak wrote:
> m: my Int @a; @a[4]++; say @a[0]; say @a
> rakudo-moar 315ec6: OUTPUT«(Int)(Any) (Any) (Any) (Any) 1»
> Is that *supposed* to say "(Any)" there?
> no, (Int)
> * masak submits rakudobug
Actually, the typed array seems to contain (Int) type objects -
There already was a (skipped) test for this bug in
S06-multi/positional-vs-named.t
I added a reference to this ticket with commit
https://github.com/perl6/roast/commit/d397bca9f2
It looks like the design of :timezone was changed shortly after this bug report
was submitted: https://github.com/perl6/specs/commit/5692ced333
The current implementation matches the design docs (timezone is offset from UTC
in seconds; is Int supports .Int method; default value for timezone is 0
AFAIU the subrule is NYI. Therefore the inherited method print is used,
which does not do the right thing on a cursor object (cmp. also
https://rt.perl.org/Ticket/Display.html?id=65208).
The test for this issue in integration/precompiled.t was unfudged with commit
https://github.com/perl6/roast/commit/57591f9f1d and the test passes now.
I'm closing this ticket as 'resolved'.
AFAIU there are already tests for the multi-invocant bit in
S06-signature/multi-invocant.t (lizmat++).
I mentioned the ticket number in one of the tests and I'm closing this ticket
as 'resolved'.
> On 13 Sep 2015, at 10:13, Tobias Leich (via RT)
> wrote:
>
> # New Ticket Created by Tobias Leich
> # Please include the string: [perl #126047]
> # in the subject line of all future correspondence about this issue.
> # https://rt.perl.org/Ticket/Display.html?id=126047 >
>
>
> m: sub foo
# New Ticket Created by Tobias Leich
# Please include the string: [perl #126047]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=126047 >
m: sub foo(Int(IntStr:D) $a) { say $a.WHAT }; foo <42>
rakudo-moar 77cf27: OUTPUT«(IntStr