mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2025-01-06 00:29:41 +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
|
else begin
|
||||||
if not first then
|
if not first then
|
||||||
Error(22);
|
Error(22);
|
||||||
|
if variable^.state = defined then
|
||||||
|
Error(42);
|
||||||
ftype := fnType^.ftype; {record the type of the function}
|
ftype := fnType^.ftype; {record the type of the function}
|
||||||
while fType^.kind = definedType do
|
while fType^.kind = definedType do
|
||||||
fType := fType^.dType;
|
fType := fType^.dType;
|
||||||
|
Loading…
Reference in New Issue
Block a user