1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
=== tests/cases/conformance/types/tuple/readonlyArraysAndTuples2.ts ===
type T10 = string[];
>T10 : string[]
type T11 = Array<string>;
>T11 : string[]
type T12 = readonly string[];
>T12 : readonly string[]
type T13 = ReadonlyArray<string>;
>T13 : readonly string[]
type T20 = [number, number];
>T20 : [number, number]
type T21 = readonly [number, number];
>T21 : readonly [number, number]
declare function f1(ma: string[], ra: readonly string[], mt: [string, string], rt: readonly [string, string]): readonly [string, string];
>f1 : (ma: string[], ra: readonly string[], mt: [string, string], rt: readonly [string, string]) => readonly [string, string]
>ma : string[]
>ra : readonly string[]
>mt : [string, string]
>rt : readonly [string, string]
declare const someDec: any;
>someDec : any
class A {
>A : A
@someDec
>someDec : any
j: readonly string[] = [];
>j : readonly string[]
>[] : never[]
@someDec
>someDec : any
k: readonly [string, number] = ['foo', 42];
>k : readonly [string, number]
>['foo', 42] : [string, number]
>'foo' : "foo"
>42 : 42
}
|