mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
11 lines
223 B
TypeScript
11 lines
223 B
TypeScript
//// [tests/cases/compiler/contextualTyping29.ts] ////
|
|
|
|
//// [contextualTyping29.ts]
|
|
function foo(param:number[]){}; foo([1, 3]);
|
|
|
|
//// [contextualTyping29.js]
|
|
"use strict";
|
|
function foo(param) { }
|
|
;
|
|
foo([1, 3]);
|