Skip to content

Commit

Permalink
Add failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbranch committed May 22, 2019
1 parent 6a559e3 commit eecb6d9
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -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

0 comments on commit eecb6d9

Please sign in to comment.