https://d.puremagic.com/issues/show_bug.cgi?id=12253
Summary: Built-in sort accepts a struct of immutables
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Keywords: accepts-invalid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from [email protected] 2014-02-25 07:13:00 PST ---
DMD 2.065 compiles this with no errors:
struct Foo {
immutable int x;
}
void main() {
Foo[] a;
a.sort;
}
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------