[Issue 12228] Identifiers 'this' and 'super' should not be allowed as base classes
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Aug 23 08:02:12 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12228
Rainer Schuetze <r.sagitario at gmx.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |r.sagitario at gmx.de
--- Comment #6 from Rainer Schuetze <r.sagitario at gmx.de> ---
Here are some more examples of what is allowed with "this" and "super":
class Foo
{
this(this that, super base)
{
// this other = that;
// static shared(super) s;
}
void member(this that)
{
}
super base;
// this next;
shared(this) that;
static shared(super) sup;
}
Commented lines produce an error. See also #13130.
Should this be documented, too?
--
More information about the Digitalmars-d-bugs
mailing list