You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now all generic classes are represented without the generic aspect. Generic classes are not actually supported by LuaLS right now, but annotating them as generic would still benefit developers. For example, IsoCell.getZombieList is annotated as returning ArrayList - annotating this as ArrayList<IsoZombie> instead would save a visit to the javadocs.
The annotations for this are quite simple:
Unfortunately, the type inference ArrayList<T>.get -> T is not possible with LuaLS's current lack of support for generic classes - class methods annotated with the generic get dropped by intellisense completely. Because of this, defining generic classes has no actual effect on the type checker, making this issue a low priority.
The text was updated successfully, but these errors were encountered:
Right now all generic classes are represented without the generic aspect. Generic classes are not actually supported by LuaLS right now, but annotating them as generic would still benefit developers. For example,
IsoCell.getZombieList
is annotated as returningArrayList
- annotating this asArrayList<IsoZombie>
instead would save a visit to the javadocs.The annotations for this are quite simple:
Unfortunately, the type inference
ArrayList<T>.get -> T
is not possible with LuaLS's current lack of support for generic classes - class methods annotated with the generic get dropped by intellisense completely. Because of this, defining generic classes has no actual effect on the type checker, making this issue a low priority.The text was updated successfully, but these errors were encountered: