TypeScript/tests/cases/compiler/typeCheckTypeArgument.ts
2014-07-12 17:30:19 -07:00

15 lines
No EOL
289 B
TypeScript

/// <reference no-default-lib="true"/>
var f: <T extends UNKNOWN>() => void;
interface IFoo<T extends UNKNOWN> { }
class Foo<T extends UNKNOWN> { }
function bar<T extends UNKNOWN>() { }
class Foo2 {
method<T extends UNKNOWN>() { }
}
(<T extends UNKNOWN>(a) => { });