https://issues.dlang.org/show_bug.cgi?id=23938
Issue ID: 23938
Summary: spellchecker suggests that `~this()` but it cant be
used.
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: diagnostic
Severity: minor
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
for
```
void main()
{
class C { ~this(){} }
(new C).dtor();
}
```
the spellchecker says :
> /tmp/temp_7F7D4BFE0830.d:4:12: Error: no property `dtor` for type
> `temp_7F7D4BFE0830.main.C`, did you mean `temp_7F7D4BFE0830.main.C.~this`?
But it should suggest `__dtor` instead
--