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
Extend clause only supports object types, no type arguments, no intersection, no union, and since any can be any of these, it is not supported. a target of an extend clause must be something that has a "known shape", so that the extend checks can run when checking the class body, and give meaningful errors about what a class did or did not extend incorrectly.
If however you use a named interface, it doesn't. I can maybe accept any not unifying with something (not really, it doesn't make sense, but lets say it does as there is no structure to check), but rejecting an interface just because its anonymous, not defined as an interface { ... } - that part seems way too arbitrary to me.
Example:
Error:
Seemingly arbitrary fix:
Afaik
any
should be an acceptable type here?The text was updated successfully, but these errors were encountered: