Bug introduced in DMD v1.011 preventing my project from compiling with this compiler version.
Compiling with -v the error spits out after "function platform" for code similar to this, although this code tested by itself doesn't error:
final class OperatingSystem
{
final:
this(int platId, int ver)
{
this.platId = platId;
this.vers = ver;
}
int platform()
{
return platId;
}
int ver()
{
return vers;
}
private:
int platId;
int vers;
}