mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 00:55:32 -05:00
Accept baseline
This commit is contained in:
@@ -13,7 +13,7 @@ function foo<T extends { m(p: string): number }>(x: T): T {
|
||||
}
|
||||
|
||||
foo({ m(x) { return x.length } });
|
||||
>foo({ m(x) { return x.length } }) : { }
|
||||
>foo({ m(x) { return x.length } }) : { m(x: string): number; }
|
||||
>foo : <T extends { m(p: string): number; }>(x: T) => T
|
||||
>{ m(x) { return x.length } } : { m(x: string): number; }
|
||||
>m : (x: string) => number
|
||||
|
||||
Reference in New Issue
Block a user