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
// If Table is non generic error does not occurdeclareclassTableClass<S=any>{_field: S}exporttypeTable=TableClass;functionfn<TextendsTable>(o: T){returnoinstanceofTableClass// error in 4.8}declareconsto: Table;oinstanceofTableClass// This is ok
π Actual behavior
o instanceof TableClass causes an error when o is typed as a generic type parameter constrained to Table but not when o is typed as Table. This behavior is different in 4.7 and 4.8. In 4.7 neither of these was an error.