TypeScript/tests/cases/compiler/selfReference.ts

3 lines
109 B
TypeScript
Raw Normal View History

2016-09-30 00:09:52 +02:00
// @noImplicitAny: true
declare function asFunction<T>(value: T): () => T;
asFunction(() => { return 1; });