DIP 1015--Deprecation of Implicit Conversion of Int. & Char. Literals to bool--Formal Assement

Kagamin spam at here.lot
Mon Nov 12 12:34:34 UTC 2018


That's strange, I thought polysemous literals prefer default 
type, not tightest type.
---
auto b=1;
static assert(is(typeof(b)==bool));
---
Error: static assert:  is(int == bool) is false


More information about the Digitalmars-d-announce mailing list