"Late definitions" - define members AFTER asserting type #1099
Labels
enhancement
New feature or request
fixed by new solver
This issue is confirmed to be fixed in the new solver.
type states
I'm not sure if this has been suggested already, but I've run into this issue with typechecking where I say that something has a type, but it gives me a warning because the variable doesn't have all it's members upon declaration:
In the above example, even though I have indeed defined
ObjectThatDoesSomething.Something
, it still acts like I haven't because when I tell the typecheckerObjectThatDoesSomething
is of the typeMyFunType
, it's just an empty table.Ideally, it would be able to see ahead in the script to check if I've defined the members afterwards. A workaround would be to define all the members directly in the table, but I don't really like that stylistically:
The text was updated successfully, but these errors were encountered: