Bug 13714 – [REG2.066.1] Assertion failure: '0' on line 2022 in file 'mtype.c'
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-11-11T15:08:00Z
Last change time
2015-02-18T03:39:38Z
Keywords
ice, pull
Assigned to
nobody
Creator
andre
Comments
Comment #0 by andre — 2014-11-11T15:08:29Z
Following coding works with 2.066 but fails to compile with 2.066.1:
Assertion failure: '0' on line 2022 in file 'mtype.c' is raised during compiling.
enum DummyStringEnum
{
foo = "bar"
}
class Test
{
@property DummyStringEnum e()
{
return DummyStringEnum.foo;
}
}
void main()
{
import std.json;
JSONValue[string] jsPayload;
jsPayload["A"] = __traits(getMember, new Test(), "e");
}