Add failing test

This commit is contained in:
Andrew Branch
2019-05-22 13:39:05 -07:00
parent 6a559e37ee
commit eecb6d9049

View File

@@ -28,3 +28,10 @@ function f1(ma: string[], ra: readonly string[], mt: [string, string], rt: reado
rt = ra; // Error
rt = mt;
}
declare var v: readonly[number, number, ...number[]];
v[0] = 1; // Error
v[1] = 1; // Error
v[2] = 1; // Error
v[0 + 1] = 1; // Error
v[0 + 2] = 1; // Error