Open
Description
openedon Mar 1, 2022
Bug Report
π Search Terms
extends
π Version & Regression Information
v4.5.4
β― Playground Link
Playground link with relevant code
π» Code
type S<X> = <T>() => T extends X ? 1 : '2'
type Foo = S<'s1'>
type Foo2 = S<'s2'>
type Result1 = Foo extends Foo2 ? true : false
type Result2 = S<'s1'> extends S<'s2'> ? true : false
π Actual behavior
For the result2 expression, the only difference from result1 is that result1 uses the type rather than the specific S<'s1'> ,But they returned a completely different result. Result1 return true,Result2 return false
π Expected behavior
type Result1 and type Result2 should return false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment