mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-11-05 02:07:22 +00:00
Report parameter type errors the same way with and without strict type checks.
They were being reported as "type conflict" by default, but as "duplicate symbol" if strict checks were used.
This commit is contained in:
parent
b5b276d0f4
commit
61a382de0b
@ -1784,7 +1784,10 @@ if tPtr^.kind = functionType then begin {declare the identifier}
|
||||
end; {if}
|
||||
end {if}
|
||||
else
|
||||
Error(42);
|
||||
if (t1^.kind = functionType) and CompTypes(t1^.fType,tPtr^.fType) then
|
||||
Error(47)
|
||||
else
|
||||
Error(42);
|
||||
1:
|
||||
if isPascal then begin
|
||||
{reverse the parameter list}
|
||||
|
Loading…
Reference in New Issue
Block a user