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