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
A program like this ought to type check, but doesn't:
fromtypingimportNamedTupleclassA: passdeff(x: A) ->None: passclassB(NamedTuple('B', [('i', int)]), A): passf(B(1)) # E: Argument 1 to "f" has incompatible type "B"; expected "A"
(Fixing this wouldn't help with #1432 without adding the reverse subtyping relation as well, but it would fix #1485 as long as constraint inference is also updated accordingly.)
The text was updated successfully, but these errors were encountered:
A program like this ought to type check, but doesn't:
(Fixing this wouldn't help with #1432 without adding the reverse subtyping relation as well, but it would fix #1485 as long as constraint inference is also updated accordingly.)
The text was updated successfully, but these errors were encountered: