https://d.puremagic.com/issues/show_bug.cgi?id=12480
Summary: static assert should print out the string
representation of a value it can interpret
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: diagnostic
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Andrej Mitrovic <[email protected]> 2014-03-27
12:44:04 CET ---
-----
enum chars = ["oops", "C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A",
"A#", "B"];
static assert(chars.length == 12);
-----
$ dmd test.d
> Error: static assert (13u == 12u) is false
-----
static immutable chars = ["oops", "C", "C#", "D", "D#", "E", "F", "F#", "G",
"G#", "A", "A#", "B"];
static assert(chars.length == 12);
-----
$ dmd test.d
> Error: static assert (chars.length == 12u) is false
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------