-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed as not planned
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug
Description
π Search Terms
- must be a type predicate
π Version & Regression Information
- This is a crash
- This changed between versions 5.4.5 and 5.5.0-dev.20240415
β― Playground Link
π» Code
interface Foo {
isFoo(x: any): this is Foo;
}
interface Bar extends Foo {
isFoo(x: any): true;
}
π Actual behavior
In bar, see:
Signature '(x: any): true' must be a type predicate
π Expected behavior
No error
Additional information about the issue
Encountering this in the VS Code repo. Seems like an unexpected regression
Metadata
Metadata
Assignees
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug