Opened 8 years ago

Closed 8 years ago

#738 closed bug (fixed)

alias after line break gives error

Reported by: steenpass Owned by: somebody
Priority: minor Milestone: 4-1-0 and higher
Component: dontKnow Version: 4-0-2
Keywords: alias Cc:

Description

> proc p1(def a1, alias def a2) {}
> proc p2(def a1,
.     alias def a2) {}
> int n1 = 1;
> int n2 = 2;
> p1(n1, n2);   // this works
> p2(n1, n2);
   ? error occurred in or before ::p2 line 1: `    alias def a2; `
   ? last reserved name was `alias`
   ? leaving ::p2
   skipping text from ` `   ? leaving ::p2
 error at token `)`
> 

From the manual (http://www.singular.uni-kl.de/Manual/4-0-2/sing_44.htm):

The parameter_list may stretch across multiple lines.

Change History (1)

comment:1 Changed 8 years ago by hannes

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.