I will create a issue for this. The minimized version is:

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");
}

Kind regards
André


On Monday, 10 November 2014 at 12:34:11 UTC, Daniel Murphy wrote:
"Andre" wrote in message news:[email protected]...


Based on the location of the error, I'd guess it's to do with passing a delegate to a templated function / as a template argument. (but it's possible it's not a delegate)

To find the error:
- Run dmd with '-v', it should tell you which function it was compiling when it crashed (the last one it lists). Once you know the function it should be easier to determine which bit of code causes the crash.
- Or use dustmite to reduce the test case.

Reply via email to