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