-
My issue is that I have a lot of stubs generated for type hints and type check and luals reads them but incorrectly, complaining that some defined functions missing or failing at inheritance types. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Can you post some part of your code, or some minimal examples? |
Beta Was this translation helpful? Give feedback.
-
Yeah, you are right, it is a valid case, the cast-thing is what I was looking for.
Not exactly the same but this will do, beggars, choosers, etc :P |
Beta Was this translation helpful? Give feedback.
Ok~ so this is the line which causes the
cast-local-type
warning. An I think it is a true-positive, because as you saidUObject
is super ofUAssetRegistryHelpers
. And in general we cannot auto cast a superclass to a narrowed subclass.=> LuaLS is working correctly in this case, agree?