Home
last modified time | relevance | path

Searched defs:number (Results 1 – 25 of 106) sorted by relevance

12345

/arkcompiler/ets_frontend/es2panda/test/parser/ts/type_checker/
DtupleAssignability24.ts17 var a: [number, number, number] | number[]; variable
18 var b: [number, number, number, number] | string[]; variable
DtupleAssignability21.ts17 var a: [number, number] | [number, number, number] = [1]; variable
DtupleAssignability.ts19 var tuple3: [number, number, number] = [1, 2, 3]; variable
21 var tuple5: [[a: number, b?: string], [boolean | string, number[]]] = [[1], ["foo", [1, 2, 3]]]; variable
53 var tuple16: [typeof tuple10, typeof tuple1, number]; variable
73 var tuple23: [number, number, number] | [number, number, number, number]; variable
77 var tuple24: number[][] | string[][] | [[number, number], [string, string]]; variable
DtupleAssignability3.ts17 var a: [number, number, number] = [1, 2]; variable
DtupleAssignability15.ts17 var a: [number, number, number]; variable
DarrayDestructuring27.ts17 var [...[b = 6, c = "foo", d]]: [number, number | string] = [1, 2]; variable
DtupleAssignability20.ts17 var a: number[] | [string, number] = [true, 5]; variable
DtupleAssignability22.ts17 var a: [number, number] | string = 5; variable
DarrayDestructuring5.ts17 var [a = 1, b = "foo"]: [number, number] = [1, 1]; variable
DarrayDestructuring6.ts17 var [a, b]: number[] | [string, number] = [1, 2]; variable
DobjectDestructuring23.ts17 var a: { b: { c: [number, number] } }; variable
/arkcompiler/ets_frontend/es2panda/test/parser/ts/
Dtest-tuple-type.ts20 var d: [[[number, number], number, number], number, number] variable
Dtest-class-definiton20.ts18 a = () : this is number => { property in C
22 b = (b : number) : this is number => { property in C
26 c = (...c : number[]) : this is number => { property in C
Dtest-ts-conditional-type.ts20 var b: boolean & number extends A ? number : string; variable
21 var c: A | number extends string ? number : string; variable
22 var d: boolean | A & string extends string ? number : string; variable
23 var e: boolean & number | string extends string ? number : string; variable
Dtest-ts-type-predicate.ts28 (asserts: number | string): asserts is number; method
36 (is: number | string): is is number; method
44 (a: number | string): a is number; method
52 (a: number | string): asserts a is number; method
60 (asserts: number | string): asserts asserts is number; method
76 (string: number | string | is): string is number; method
Dtest-type-alias2.ts17 type bar number; alias
Dtest-ts-conditional-type3.ts17 type Foo = string extends number ? number string : string; alias
Dtest-ts-conditional-type2.ts17 type Foo = string extends number ? number extends : string; alias
Dtest-ts-conditional-type6.ts17 type Foo = string extends number ? infer number : string; alias
Dtest-ts-conditional-type4.ts17 type Foo = string extends number ? number : string extends; alias
Dtest-ts-conditional-type7.ts17 type Foo = string extends number ? number : infer string; alias
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/jsDeclarationsJson/
Dobj.json25 AssertType("x", "number"); null
29 AssertType("y", "number"); null
40 AssertType("x", "number"); null
43 AssertType("x", "number"); null
45 AssertType("y", "number"); null
48 AssertType("x", "number"); null
51 AssertType("x", "number"); null
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DparseGenericArrowRatherThanLeftShift.ts26 const b = foo<<T>(x: T) => number>(() => 1); constant
DcontrolFlowElementAccess.ts42 const y: [number, number] = [0, 0]; constant
/arkcompiler/ets_frontend/arkguard/test/grammar/types_definition/
Dtuple_define.ts18 let x: [string, number, boolean]; variable

12345