-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
DuplicateAn existing issue was already createdAn existing issue was already created
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"
Metadata
Metadata
Assignees
Labels
DuplicateAn existing issue was already createdAn existing issue was already created