[Issue 23938] New: spellchecker suggests that `~this()` but it cant be used.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri May 26 10:40:35 UTC 2023
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: nobody at puremagic.com
Reporter: b2.temp at gmx.com
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
--
More information about the Digitalmars-d-bugs
mailing list