June 28, 2020 [Issue 20988] New: Missing error for negated array.ptr | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20988 Issue ID: 20988 Summary: Missing error for negated array.ptr Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: moonlightsentinel@disroot.org The following code compiles without raising an error regarding `arr.ptr`. void main() @safe { uint[] arr = [1, 2, 3]; bool b = !arr.ptr; } -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply