Summary: Can't use alias for overload resolution with alias
                    this subtype
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Andrej Mitrovic <> 2012-03-30 
05:57:38 PDT ---
class Foo
   bool test() { return true; }

class Bar
   Foo foo;
   alias foo this;

class FooBar : Bar
   bool test(int x) { return true; }
   alias super.test test;

void main() {}

test.d(17): Error: 'this' is only defined in non-static member
functions, not FooBar
test.d(17): Error: alias test.FooBar.test cannot alias an expression

The error message is quite weird as well.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to