2014-07-13 01:04:16 +02:00
|
|
|
//// [targetTypeTest2.ts]
|
|
|
|
// Test target typing for array literals and call expressions
|
|
|
|
|
|
|
|
|
|
|
|
var a : any[] = [1,2,"3"];
|
|
|
|
|
|
|
|
|
|
|
|
function func1(stuff:any[]) { return stuff; }
|
|
|
|
|
|
|
|
function func2(stuff1:string, stuff2:number, stuff3:number) {
|
|
|
|
return func1([stuff1, stuff2, stuff3]);
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [targetTypeTest2.js]
|
2014-08-12 00:54:12 +02:00
|
|
|
// Test target typing for array literals and call expressions
|
2014-07-13 01:04:16 +02:00
|
|
|
var a = [1, 2, "3"];
|
|
|
|
function func1(stuff) {
|
|
|
|
return stuff;
|
|
|
|
}
|
|
|
|
function func2(stuff1, stuff2, stuff3) {
|
|
|
|
return func1([stuff1, stuff2, stuff3]);
|
|
|
|
}
|