interfaceBase{b}interfaceDerivedextendsBase{d}declarefunctionisDerived(x: Base): x is Derived;functionf<TextendsBase>(x: T,y: T){if(isDerived(x)&&isDerived(y)){returnx.d===y.d;}returnfalse;}Currently, this errors because both x and y still have type T, so they are missing the d property.
Currently, this errors because both
xandystill have typeT, so they are missing thedproperty.