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


# error
[jdv@wieldy ~]$ perl6 --target=ast -e 'module m { sub infix:<o1> {} }' 
| head
===SORRY!===
Cannot unbox a type object
[jdv@wieldy ~]$

# warning
[jdv@wieldy ~]$ perl6 --target=ast -e 'module m { sub o1 {} }' | head
Sub object coerced to string (please use .gist or .perl to do that)  in 
any dump_node_list at gen/moar/stage2/QASTNode.nqp:81
- QAST::CompUnit
   [pre_deserialize]
     - QAST::Stmt
       - QAST::Stmt
         - QAST::Op(loadbytecode)
           - QAST::VM
             [jvm]
               - QAST::SVal(ModuleLoader.class)
             [moar]
               - QAST::SVal(ModuleLoader.moarvm)
[jdv@wieldy ~]$

Reply via email to