[Issue 8374] One missed array literal interpretation as int[2]
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jul 10 16:56:32 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8374
timon.gehr at gmx.ch changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |timon.gehr at gmx.ch
Resolution|INVALID |
--- Comment #2 from timon.gehr at gmx.ch 2012-07-10 16:56:28 PDT ---
The [1,2] / [10,20] literal implicitly converts to int[2].
It is similar to the following:
struct Foo{
short bar;
}
short spam() {
const Foo* x;
return true ? x.bar : 1;
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list