--- ushort a(ushort b) pure nothrow { return b<<10|b; } //compiles ushort a(ushort b) pure nothrow { return b<<10; } //compiles only without -w switch ---
Fixed in 2.031: now it (correctly) fails to compile regardless of whether -w is used.