mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2025-01-01 13:29:32 +00:00
Give an error if a function is defined multiple times.
This commit is contained in:
parent
83147655d2
commit
82b2944eb8
@ -3861,6 +3861,8 @@ if isFunction then begin
|
||||
else begin
|
||||
if not first then
|
||||
Error(22);
|
||||
if variable^.state = defined then
|
||||
Error(42);
|
||||
ftype := fnType^.ftype; {record the type of the function}
|
||||
while fType^.kind = definedType do
|
||||
fType := fType^.dType;
|
||||
|
Loading…
Reference in New Issue
Block a user