void fun(uint x) pure { pragma(msg, typeof(x)); // const(uint) } Implicitly converting x to const is completely pointless, since it's just a stack variable with no indirection whatsoever.
See bug 2832
Thanks, Bearophile. It's definitely a duplicate. *** This issue has been marked as a duplicate of issue 2832 ***