digitalmars.D.bugs - [Issue 13010] New: Use variable range propagation (VRP) for static
- via Digitalmars-d-bugs (20/20) Jun 30 2014 https://issues.dlang.org/show_bug.cgi?id=13010
https://issues.dlang.org/show_bug.cgi?id=13010 Issue ID: 13010 Summary: Use variable range propagation (VRP) for static assert Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P1 Component: DMD Assignee: nobody puremagic.com Reporter: lio+bugzilla lunesu.com This code should work: void testvrp(ubyte l) { immutable int i = l; static assert(i + 1); } --
Jun 30 2014