Ticket #1152 (closed todo: fixed)

Opened 7 years ago

Last modified 6 years ago

:named should default to the name of the parameter

Reported by: coke Owned by:
Priority: normal Milestone:
Component: none Version: trunk
Severity: medium Keywords:
Cc: Language:
Patch status: Platform:


Originally opened in  http://rt.perl.org/rt3/Ticket/Display.html?id=58886, this code:

.sub main
  $I0 = 'incr'('value'=>3)
  say $I0

.sub 'incr'
  .param int value :named
  inc value

Should print '4' - the lack of an explicit name for the value param should, per allison, default to the name of the param. (in this case, 'value').

Change History

Changed 7 years ago by coke

Test added to t/compilers/imcc/syn/pcc.t in r42149.

Changed 6 years ago by plobsing

  • status changed from new to closed
  • resolution set to fixed

fixed in r46431

Note: See TracTickets for help on using tickets.