mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-04-17 01:49:41 -05:00
Add failing test
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user