[Issue 7066] You can redefine .init and .stringof without error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon May 14 11:41:29 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=7066
Nick Treleaven <nick at geany.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nick at geany.org
--- Comment #11 from Nick Treleaven <nick at geany.org> ---
struct S {
string stringof;
}
// Issue 14237
class MyClass
{
void init() {};
}
`init` and `stringof` should be required to be `static`, as they are expected
to work without an instance. They should probably not be allowed to be `void`
functions either.
--
More information about the Digitalmars-d-bugs
mailing list