[Issue 20138] is expression not evaluating correctly?

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Aug 18 21:32:00 UTC 2019


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

--- Comment #4 from Manu <turkeyman at gmail.com> ---
Is this another construction of the same issue, or is it a similar but
unrelated issue?

  T fun(T)(shared(T) a)
  {
      return a;
  }
  shared const int[] x;
  pragma(msg, typeof(fun(x)));

> const(shared(int)[])    !!!

`T` should be typeof(x) but with shared peeled away: const(int[])

--


More information about the Digitalmars-d-bugs mailing list