[Issue 10648] New: std.traits.isMutable is true for struct defined immutable
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jul 15 10:13:35 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10648
Summary: std.traits.isMutable is true for struct defined
immutable
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2013-07-15 10:13:33 PDT ---
With dmd 2.064alpha this code runs with no assert errors:
import std.traits: isMutable;
immutable struct Foo {}
void main () {
static assert(isMutable!Foo);
}
Issue found by JS:
http://forum.dlang.org/thread/xjpfwfydzxxwqisvqudw@forum.dlang.org
--
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