Re: [perl #112810] package confuses newly declared class with buildin

2012-05-08 Thread Wenzel Peppmeyer
On Tue, 8 May 2012, jn...@jnthn.net via RT wrote: On Mon May 07 16:21:12 2012, gfldex wrote: package A { class Str {}; our sub foo() { return Str.new } } This type cannot box a native string Run it with -e and you see it's actually a compile-time error too: ===SORRY!=== This type cannot

[perl #112810] package confuses newly declared class with buildin

2012-05-07 Thread via RT
# New Ticket Created by Wenzel Peppmeyer # Please include the string: [perl #112810] # in the subject line of all future correspondence about this issue. # https://rt.perl.org:443/rt3/Ticket/Display.html?id=112810 > package A { class Str {}; our sub foo() { return Str.new } } > This type can