https://d.puremagic.com/issues/show_bug.cgi?id=11896

           Summary: isVirtualMethod related GitHub HEAD regression (works
                    with 2.064)
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Puneet Goel <[email protected]> 2014-01-10 09:14:05 PST 
---
Here is the reduced testcase. With the GitHub HEAD DMD I get:

$ dmd -c test.d
test.d(8): Error: function test.foo!int.foo.bar () is not callable using
argument types (foo!int)
test.d(12): Error: template instance test.foo!int error instantiating


// File test.d
class foo(T = int) {
  static if(! __traits(isVirtualMethod, zoo)) {}
  alias foo!(T) foobar;
  static foobar _bar;
  static foobar bar() {return _bar;}
  static void bar(foobar foo) {_bar = foo;}
  static foobar zoo() {
    bar = new foobar;
    return bar;
  }
}
foo!(int) baz;

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to