Ticket #1152 (closed todo: fixed)

Opened 5 years ago

Last modified 5 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:

Description

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

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

.sub 'incr'
  .param int value :named
  inc value
  .return(value)
.end

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 5 years ago by coke

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

Changed 5 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.