TypeScript/tests/cases/compiler/typeArgumentInferenceApparentType1.ts

6 lines
115 B
TypeScript
Raw Normal View History

2015-07-11 03:16:59 +02:00
//@target: ES6
function method<T>(iterable: Iterable<T>): T {
return;
}
var res: string = method("test");