http://d.puremagic.com/issues/show_bug.cgi?id=10214
Summary: Incorrect "element-wise assignment is better" warning
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Denis Shelomovskij <[email protected]> 2013-05-30
20:08:27 MSD ---
---
void main()
{
bool[1] arr;
arr = 0; // line 4
}
---
dmd output:
---
main.d(4): Warning: explicit element-wise assignment (arr)[] = (0)[] is better
than arr = 0
---
(it should be no slice after `0`)
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------