TypeScript/tests/cases/compiler/parseGenericArrowRatherThanLeftShift.ts

6 lines
138 B
TypeScript
Raw Normal View History

type Bar = ReturnType<<T>(x: T) => number>;
declare const a: Bar;
2018-08-27 05:47:10 +02:00
function foo<T>(_x: T) {}
const b = foo<<T>(x: T) => number>(() => 1);