Weird 'Incompatible types' error
Hi all,
I sometimes get a compiler error message:
Incompatible types: 'xxx' and 'TDataConfig'
The message is generated for an assignment of a TDataConfig to a
TDataConfig, which is my own defined type (defined in the same unit).
I'm sure the assignment is correct.
Now, I made the following puzzling observations:
1) 'xxx' is a nonsense strings, e.g. '@#||L.('.
2) not every compile of the unit generates this message. Often
the compiler does not complain at all.
3) when the error is reported and I select Project/Compile, the error
is reported again, but with a different 'xxx'.
4) when I rebuild the whole project (Project/Build), the compiler
never complains and the program runs fine.
Anyone seen this before and has any hint of where to look? Any help
is appreciated very much! My Delphi version is 2.00.
Thanks in advance,
Wim.