[Issue 2464] Correct error message causes incorrect error messages
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 20 16:22:11 PST 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2464
------- Comment #2 from dhasenan at gmail.com 2008-11-20 18:22 -------
This isn't a matter of compiler internals being messed up -- this is consistent
and, I believe, deliberate behavior. Unusual, but useful once you're used to
it.
Inserting a default type for a previously undefined variable allows the
compiler to continue on and maybe find more errors. It will also result in bad
error messages. It should be possible to give a default type of "unknown" that
accepts any sort of variable assignment and any sort of field or method access,
or else complains about all usages.
--
More information about the Digitalmars-d-bugs
mailing list