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
@HeiLumi, this is a just how the type system works. If you did the same in TypeScript, you'd get the same results. The problem is that when they are given the parent class, they lose their upstream prototype signature, and so even though they have the right shape, there's no way to know.
Your turning each class to Base, so of course instanceof checks won't work here. Rather, you can add a type property to each class and check if (parsed[i].type === Vec1.type) for example
json-as 0.9.21
in nasty example is problem in deserializing. Castings after deserialization does not work.
The text was updated successfully, but these errors were encountered: