[Issue 478] New: can't compare arrayliteral statically with variable
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 3 22:44:41 PST 2006
http://d.puremagic.com/issues/show_bug.cgi?id=478
Summary: can't compare arrayliteral statically with variable
Product: D
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: lovesyao at hotmail.com
don't work:
const char[] test=['a','b','c','d'];
static assert(test==['a','b','c','d']);
work:
static assert(['a','b','c','d']==['a','b','c','d']);
--
More information about the Digitalmars-d-bugs
mailing list