[Issue 5839] Spellchecker matches private symbols outside of the module, leading to extra, broken error messages
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jan 11 07:47:00 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=5839
Basile-z <b2.temp at gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |b2.temp at gmx.com
Resolution|FIXED |---
--- Comment #12 from Basile-z <b2.temp at gmx.com> ---
new case:
a.d
---
module a;
class Foo
{
private int x;
}
---
b.d
---
module b;
import a;
void test(Foo foo)
{
foo.x++;
}
---
dmd a.d b.d
> b.d(7): Error: no property x for type a.Foo, did you mean a.Foo.x?
I would have expected a message related to the visibility.
--
More information about the Digitalmars-d-bugs
mailing list