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
class AA {
do1 (){
const b = dd.getB();
if (this === b){
console.log("this === b");
}
}
}
class BB extends AA{
getB():BB {return this;}
}
let dd = new BB();
dd.do1();
🙁 Actual behavior
at line: if (this === b){
error TS2367: This condition will always return 'false' since the types 'this' and 'BB' have no overlap.
and execute the compiled js file will output:
this === b