Main.hx:6: characters 18-28 : Only inline or read-only (default, never) fields can be used as a pattern