[Issue 14269] Enum is not implicitly converted to base type when using ref

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Mar 12 11:55:07 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14269

--- Comment #26 from Ketmar Dark <ketmar at ketmar.no-ip.org> ---
class C {}

void foo (Object o) {
  o = new Object();
}

void main () {
  C c = new C;
  auto n = c;
  foo(c);
  assert(c == n); // assertion passed
}

--


More information about the Digitalmars-d-bugs mailing list