# New Ticket Created by  Zoffix Znet 
# Please include the string:  [perl #130158]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=130158 >



 From https://irclog.perlgeek.de/perl6/2016-11-23#i_13618534

15:43   timotimo        that's a cool golf
15:43           m: enum Foo (bar => class {}.new)
15:43   camelia         rakudo-moar 6bb882: OUTPUT«5===SORRY!5=== Error while  
compiling <tmp>␤Cannot auto-generate a proto method for 'Int' in the  
setting␤at <tmp>:1␤»
15:43   timotimo        m: enum Foo (bar => class {})
15:43   camelia         rakudo-moar 6bb882: OUTPUT«5===SORRY!5=== Error while  
compiling <tmp>␤Cannot auto-generate a proto method for 'Int' in the  
setting␤at <tmp>:1␤»
15:44   viki    What's cool about it? What is it trying to do?
15:44           ZzZombo: "setting" is what we call the core code.
15:44           Well, part of it.
15:45   timotimo        it's trying to give us a bad error message
15:45   viki    oh
15:45           m: try 'enum Foo (bar => class {}.new)'.EVAL; $!.name
15:45   camelia         rakudo-moar 6bb882: OUTPUT«No such method 'name' for  
invocant of type 'X::Comp::AdHoc'␤  in block <unit> at <tmp> line 1␤␤»
15:45           acrussell_ joined #perl6
15:45   viki    s: X::Comp::AdHoc.new, 'message', \()
15:45   SourceBaby      viki, Sauce is at  
https://github.com/rakudo/rakudo/blo​b/6bb8823/src/core/Exception.pm#L124

Reply via email to