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
explicit downcast as in foo as Derived (or <Derived>foo)
implicit downcast due to bivariant function types: TS FAQ
covariant arrays
indexing types without explicit indexer
I think we could introduce some runtime checks for the above - upon explicit casting, entry into a lambda function, and upon assigning to arrays.
We cannot really support union types (there is currently no way to distinguish at runtime between a number and a reference for example). Intersection types are I think only compile-time feature.
The text was updated successfully, but these errors were encountered:
Following scenarios need investigating:
foo as Derived
(or<Derived>foo
)I think we could introduce some runtime checks for the above - upon explicit casting, entry into a lambda function, and upon assigning to arrays.
We cannot really support union types (there is currently no way to distinguish at runtime between a number and a reference for example). Intersection types are I think only compile-time feature.
The text was updated successfully, but these errors were encountered: