mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
10 lines
257 B
TypeScript
10 lines
257 B
TypeScript
//// [tests/cases/compiler/genericArrayMethods1.ts] ////
|
|
|
|
//// [genericArrayMethods1.ts]
|
|
var x:string[] = [0,1].slice(0); // this should be an error
|
|
|
|
|
|
//// [genericArrayMethods1.js]
|
|
"use strict";
|
|
var x = [0, 1].slice(0); // this should be an error
|