[Issue 11896] [REG2.066a] isVirtualMethod related GitHub HEAD regression (works with 2.064)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 15 06:45:10 PST 2014


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



--- Comment #8 from Puneet Goel <puneet at coverify.org> 2014-01-15 06:45:01 PST ---
Yet another reduced testcase. This results in breaking my code at runtime since
the constructor is given a skip with GitHub HEAD!

class Bar {}

class Foo(T=Bar) {
  static if(! __traits(isVirtualMethod, foo)) {}
  alias Foo!(T) this_type;
  this() {
    import std.stdio;
    writeln("Call to constructor -- GitHub HEAD skips this");
  }
  static public this_type foo() {
    return new this_type();
  }
}

void main() {
  alias Foo!Bar FooBar;
  FooBar.foo();
}

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


More information about the Digitalmars-d-bugs mailing list