TypeScript/tests/baselines/reference/arrayTypeOfTypeOf.js
Andy 7e8851e65b
Always require '=' before parsing an initializer (#19979)
* Always require '=' before parsing an initializer

* Fix fourslash tests
2017-11-14 07:15:59 -08:00

19 lines
417 B
TypeScript

//// [arrayTypeOfTypeOf.ts]
// array type cannot use typeof.
var x = 1;
var xs: typeof x[]; // Not an error. This is equivalent to Array<typeof x>
var xs2: typeof Array;
var xs3: typeof Array<number>;
var xs4: typeof Array<typeof x>;
//// [arrayTypeOfTypeOf.js]
// array type cannot use typeof.
var x = 1;
var xs; // Not an error. This is equivalent to Array<typeof x>
var xs2;
var xs3;
;
var xs4;
;