mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
12 lines
190 B
TypeScript
12 lines
190 B
TypeScript
//// [tests/cases/compiler/arraySlice.ts] ////
|
|
|
|
//// [arraySlice.ts]
|
|
var arr: string[] | number[];
|
|
arr.splice(1, 1);
|
|
|
|
|
|
//// [arraySlice.js]
|
|
"use strict";
|
|
var arr;
|
|
arr.splice(1, 1);
|