<div dir="ltr">so you can try to use static immutable insted of enum</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 11, 2017 at 5:04 PM, Daniel Kozak <span dir="ltr"><<a href="mailto:kozzi11@gmail.com" target="_blank">kozzi11@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Not sure, but I belive this could be one of reasons:<div><a href="https://issues.dlang.org/show_bug.cgi?id=15989" target="_blank">https://issues.dlang.org/show_<wbr>bug.cgi?id=15989</a><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 11, 2017 at 4:54 PM, bauss via Digitalmars-d <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Sunday, 8 October 2017 at 04:40:59 UTC, Daniel Kozak wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>
Up to 2.062 : Failure with output:<br>
-----<br>
onlineapp.d(10): Error: cannot evaluate new Foo("0") at compile time<br>
onlineapp.d(10): Error: cannot evaluate new Foo("1") at compile time<br>
-----<br>
<br>
2.063 to 2.072.2: Success with output: Hello D<br>
Since 2.073.2: Failure with output: onlineapp.d(10): Error: variable<br>
onlineapp.aa : Unable to initialize enum with class or pointer to struct.<br>
Use static const variable instead.<br>
<br>
<a href="https://run.dlang.io/is/mJqayC" rel="noreferrer" target="_blank">https://run.dlang.io/is/mJqayC</a><br>
<br>
On Sun, Oct 8, 2017 at 4:29 AM, bauss via Digitalmars-d < <a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>> wrote:<br>
<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
[...]<br>
</blockquote></blockquote>
<br>
Do you know what the reason for the change is and are there any workarounds to actually declare AA's with classes that can be used at compile-time then?<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>