---
class C
{
int a = foo(); // foo is called at compile time
}
---
Reduced test case:
---
class S
{
int a = compileTime(1);
int b = compileTime(2);
}
int compileTime(int i) { import std.stdio; writeln("ct"); return
i; }
---
This works as expected. To initialize your fields at runtime
(using a constructor) will solve your problem.
