[Issue 7815] Mixin template forward reference (?) regression

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 10 22:37:36 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7815



--- Comment #14 from klickverbot <code at klickverbot.at> 2012-04-10 22:38:19 PDT ---
Drastically reduced test case:

———
struct Expression(string op_, Lhs) {
  enum lhsClosure = closureOf!Lhs;
}

template closureOf(T) {
  static if (is(typeof({
    T x;
    x + x;
  }))) {}
  enum closureOf = 1;
}

struct BasicVector {
  void t() {
    auto r = Expression!("t", typeof(this))();
  }

  auto opBinary( string op, NewRhs )( NewRhs ) {
    return Expression!("+", typeof(this))();
  }
}
———

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


More information about the Digitalmars-d-bugs mailing list