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

--- Comment #6 from Salih Dincer <[email protected]> ---
  // because :

  enum index1 = Index();
  assert(
    is(typeof(index1) == struct)
  );

  auto index2 = Index();
  assert(
    !is(typeof(index1) == size_t) &&
    !is(typeof(index2) == size_t)
  );

  // but:

  enum index = Index();
  int[index + 1] d; // automatic conversion
  d[0] = 42; // yeah

SDB@79

--

Reply via email to