#1703: IMCC doesn't generate get_params op for argless subs.
--------------------+-------------------------------------------------------
 Reporter:  bacek   |       Owner:       
     Type:  bug     |      Status:  new  
 Priority:  normal  |   Milestone:       
Component:  imcc    |     Version:  trunk
 Severity:  medium  |    Keywords:       
     Lang:          |       Patch:       
 Platform:          |  
--------------------+-------------------------------------------------------
 Hello.

 IMCC doesn't generate get_params for argless sub which leads to buggy
 code.

 E.g.

 {{{
 $ cat t.pir
 .sub "foo"
     say "foo"
 .end

 .sub "main" :main
     say "Hello, World"
     "foo"("bar")
 .end

 $ parrot t.pir
 Hello, World
 foo

 }}}

 This should throw exception {{{too many positional arguments: 1 passed, 0
 expected}}}

 --
 Bacek

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1703>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to