[Issue 13130] Syntax check fails when this is used as argument type
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Aug 23 07:56:54 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13130
--- Comment #4 from Rainer Schuetze <r.sagitario at gmx.de> ---
I also think this is a misfeature. Some experiments show that is very
inconsistent: the following code compiles, commented lines throw an error.
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;
}
Similar stuff works for structs an "this", "super" is an undefined identifier.
--
More information about the Digitalmars-d-bugs
mailing list