SpryFox/DarkConfig

Infinite loop when reifying values that contain a field of the same type

Closed this issue · 1 comments

e.g. Reading values of ConfigID infinitely recurses because it's not detecting that INVALID is a static member.

public class ConfigID {
  public static readonly ConfigID INVALID = new ConfigID(0);

  int ID;

  public ConfigID(int id) {
    ID = id;
  }
}

Done this downstream. Will upstream this soon with a PR :)