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
M is a string index signature of type U, and U is the Any type or S has an apparent string
index signature of a type that is a subtype of U.
M is a numeric index signature of type U, and U is the Any type or S has an apparent
string or numeric index signature of a type that is a subtype of U.
"U is the Any type or " was added here. But similar rules for assignability weren't changed. That is strange: until 1.6 assignability rules were more relaxed than subtyping rules. What is the rationale for that? Thanks!
The text was updated successfully, but these errors were encountered:
Well, an example at #4074 deals with assignability, not subtyping. So I guess it's just an error in spec, and changes should be moved or copied to assignability.
It's an error in the spec. The new wording should also be present in the section on assignability. Thanks for pointing it out.
danquirk
added
Bug
A bug in TypeScript
Spec
Issues related to the TypeScript language specification
and removed
Question
An issue which isn't directly actionable in code
labels
Sep 4, 2015
From 1.6 spec, rules about subtypes/supertypes:
"U is the Any type or " was added here. But similar rules for assignability weren't changed. That is strange: until 1.6 assignability rules were more relaxed than subtyping rules. What is the rationale for that? Thanks!
The text was updated successfully, but these errors were encountered: