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

14 lines
368 B
TypeScript

function foo(callback: (x: string) => void) {
callback("hello");
}
foo(function(x) { x });
[1].forEach(function(v,i,a) { v });
["hello"].every(function(v,i,a) {return true;});
[1].every(function(v,i,a) {return true;});
[1].every(function(v,i,a) {return true;});
["s"].every(function(v,i,a) {return true;});
["s"].forEach(function(v,i,a) { v });