https://issues.dlang.org/show_bug.cgi?id=21711
ag0aep6g <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from ag0aep6g <[email protected]> --- The issue seems to be that constant folding ignores the type. Test case without a function pointer: ---- void main() { immutable void* x = cast(void*) 91; string s = x ~ ""; /* accepted; should be rejected */ } ---- --
