[Issue 17426] New: "version(none):" cant be overwritten by its counterpart
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue May 23 22:43:44 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=17426
Issue ID: 17426
Summary: "version(none):" cant be overwritten by its
counterpart
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: wrong-code
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: b2.temp at gmx.com
this test cast should crash at run-time
dmd veroverwrite.d -main -unittest
veroverwrite.d:
---
version(none):
unittest {assert(false);}
version(all):
unittest {assert(false);} // not compiled
version(none):
unittest {assert(false);}
---
--
More information about the Digitalmars-d-bugs
mailing list