TypeScript/tests/cases/compiler/overloadsWithConstraints.ts
2014-10-23 12:27:34 -07:00

4 lines
122 B
TypeScript

declare function f<T extends Number>(x: T): T;
declare function f<T extends String>(x: T): T
var v = f<string>("");