← Back to index
|
Original Bugzilla link
Bug 3501 – (D1 only) "is null" comparison should be disallowed for fixed-size arrays
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
All
OS
All
Creation time
2009-11-13T08:38:09Z
Last change time
2019-07-16T03:59:23Z
Keywords
accepts-invalid
Assigned to
No Owner
Creator
Max Samukha
Comments
Comment #0
by samukha — 2009-11-13T08:38:09Z
At least 'a is null' in the following example should not compile: void main() { int[3] a = null; a = null; if (a is null){} }
Comment #1
by yebblies — 2012-02-01T07:35:12Z
Fixed in D2 (2.058)