16 lines
348 B
TypeScript
16 lines
348 B
TypeScript
|
const n1: number = [0];
|
||
|
const n2: number = ["0"];
|
||
|
const n3: number = [0, "1"];
|
||
|
const n4: 0 = [0];
|
||
|
|
||
|
const s1: string = [0];
|
||
|
const s2: string = ["0"];
|
||
|
const s3: string = [0, "1"];
|
||
|
const s4: "01" = ["0", "1"];
|
||
|
|
||
|
const no1: number = { 0: 1 };
|
||
|
|
||
|
const so1: string = { 0: 1 };
|
||
|
const so2: string = { "0": 1 };
|
||
|
const so3: string = { 0: "1" };
|