Add more tests

This commit is contained in:
Anders Hejlsberg
2019-01-16 09:46:28 -08:00
parent 2256f9159f
commit 2ccc106984

View File

@@ -8,6 +8,10 @@ type T13 = ReadonlyArray<string>;
type T20 = [number, number];
type T21 = readonly [number, number];
type T30 = readonly string; // Error
type T31<T> = readonly T; // Error
type T32 = readonly readonly string[]; // Error
function f1(ma: string[], ra: readonly string[], mt: [string, string], rt: readonly [string, string]) {
ma = ra; // Error
ma = mt;