Skip to content

Commit 2ccc106

Browse files
committed
Add more tests
1 parent 2256f91 commit 2ccc106

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/cases/conformance/types/tuple/readonlyArraysAndTuples.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ type T13 = ReadonlyArray<string>;
88
type T20 = [number, number];
99
type T21 = readonly [number, number];
1010

11+
type T30 = readonly string; // Error
12+
type T31<T> = readonly T; // Error
13+
type T32 = readonly readonly string[]; // Error
14+
1115
function f1(ma: string[], ra: readonly string[], mt: [string, string], rt: readonly [string, string]) {
1216
ma = ra; // Error
1317
ma = mt;

0 commit comments

Comments
 (0)