Closed
Description
TypeScript Version: 2.1.4.0
class C
{
public f1() {
return 1;
}
public f2()
{
if (this instanceof Sub)
return 2;
return this.f1(); // Does not compile: error "f1 does not exist on type never"
}
}
class Sub extends C
{
}
Expected behavior:
Compile without error
Actual behavior:
Error "f1 does not exist on type never"