Opened 12 years ago

Closed 12 years ago

#1911 closed defect (invalid)

Detects a duplicate element where none exists

Reported by: Martin Sjölund Owned by: somebody
Priority: high Milestone: 1.9.0
Component: Frontend Version:
Keywords: Cc:

Description

The following detects a duplicate element where none exists:

model M
  record R
  end R;
  function f
    input R r;
    output Real o;
  algoritm
    o := 1.0;
  end f;
  Real r = f();
end M;
[a.mo:6:5-6:18:writable] Error: An element with name o is already declared in this scope.

Change History (1)

comment:1 by Martin Sjölund, 12 years ago

Resolution: invalid
Status: newclosed

Ooops... algoritm is not the proper keyword...

Note: See TracTickets for help on using tickets.