Home
last modified time | relevance | path

Searched refs:tt2 (Results 1 – 25 of 37) sorted by relevance

12

/third_party/typescript/tests/cases/conformance/types/tuple/
DvariadicTuples2.ts53 declare let tt2: [number, ...string[], number];
54 tt2 = [0]; // Error
55 tt2 = [0, 1];
56 tt2 = [0, 1, 2]; // Error
57 tt2 = [0, 'abc', 1];
58 tt2 = [0, 'abc', 'def', 1];
59 tt2 = [0, 'abc', 1, 'def']; // Error
60 tt2 = [true, 'abc', 'def', 1]; // Error
61 tt2 = [0, 'abc', 'def', true]; // Error
/third_party/typescript/tests/baselines/reference/
DvariadicTuples2.js51 declare let tt2: [number, ...string[], number];
52 tt2 = [0]; // Error
53 tt2 = [0, 1];
54 tt2 = [0, 1, 2]; // Error
55 tt2 = [0, 'abc', 1];
56 tt2 = [0, 'abc', 'def', 1];
57 tt2 = [0, 'abc', 1, 'def']; // Error
58 tt2 = [true, 'abc', 'def', 1]; // Error
59 tt2 = [0, 'abc', 'def', true]; // Error
154 tt2 = [0]; // Error
[all …]
DvariadicTuples2.symbols152 declare let tt2: [number, ...string[], number];
153 >tt2 : Symbol(tt2, Decl(variadicTuples2.ts, 49, 11))
155 tt2 = [0]; // Error
156 >tt2 : Symbol(tt2, Decl(variadicTuples2.ts, 49, 11))
158 tt2 = [0, 1];
159 >tt2 : Symbol(tt2, Decl(variadicTuples2.ts, 49, 11))
161 tt2 = [0, 1, 2]; // Error
162 >tt2 : Symbol(tt2, Decl(variadicTuples2.ts, 49, 11))
164 tt2 = [0, 'abc', 1];
165 >tt2 : Symbol(tt2, Decl(variadicTuples2.ts, 49, 11))
[all …]
DvariadicTuples2.types143 declare let tt2: [number, ...string[], number];
144 >tt2 : [number, ...string[], number]
146 tt2 = [0]; // Error
147 >tt2 = [0] : [number]
148 >tt2 : [number, ...string[], number]
152 tt2 = [0, 1];
153 >tt2 = [0, 1] : [number, number]
154 >tt2 : [number, ...string[], number]
159 tt2 = [0, 1, 2]; // Error
160 >tt2 = [0, 1, 2] : [number, number, number]
[all …]
DfatarrowfunctionsOptionalArgsErrors2.symbols5 var tt2 = ((a), b, c) => a+b+c;
6 >tt2 : Symbol(tt2, Decl(fatarrowfunctionsOptionalArgsErrors2.ts, 1, 3))
DtupleTypes.js36 var tt2 = tt[2]; variable
37 var tt2: number | string; variable
97 var tt2 = tt[2];
98 var tt2; variable
DfatarrowfunctionsOptionalArgsErrors2.js3 var tt2 = ((a), b, c) => a+b+c; variable
10 var tt2 = ((a), b, c);
DfatarrowfunctionsOptionalArgsErrors2.types17 var tt2 = ((a), b, c) => a+b+c;
18 >tt2 : any
DtupleTypes.symbols123 var tt2 = tt[2];
124 >tt2 : Symbol(tt2, Decl(tupleTypes.ts, 34, 3), Decl(tupleTypes.ts, 35, 3))
127 var tt2: number | string;
128 >tt2 : Symbol(tt2, Decl(tupleTypes.ts, 34, 3), Decl(tupleTypes.ts, 35, 3))
DtupleTypes.types146 var tt2 = tt[2];
147 >tt2 : undefined
152 var tt2: number | string;
153 >tt2 : undefined
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/spec/functions/destructuring_parameter_declarations/
Ddestructuring_parameter_declarations_1.ts43 let tt2: Person = new Person("caihua2", 122); variable
44 let person_array: Person[] = [tt1, tt2]; variable
46 let [tt1, tt2] = v_array;
49 Assert.equal(tt2.m_name, v_array[1].m_name);
50 Assert.equal(tt2.m_age, v_array[1].m_age);
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/spec/functions/function_implementations/
Dfunction_implementations_1.ts30 let tt2: voidTest = undefined; variable
31 Assert.equal(tt1, tt2);
32 Assert.equal(tt1 === tt2, true);
Dfunction_implementations_2.ts42 let tt2: ttBoo = true; variable
43 Assert.isBoolean(tt2);
/third_party/skia/tests/
DPathOpsQuadIntersectionTest.cpp45 double tt2 = intersections[1][pt]; in standardTestCases() local
46 SkDPoint xy2 = quad2.ptAtT(tt2); in standardTestCases()
50 tt2, xy2.fX, xy2.fY); in standardTestCases()
349 double tt2 = intersections[1][pt]; in oneOffTest1() local
350 SkDPoint xy2 = quad2.ptAtT(tt2); in oneOffTest1()
354 tt1, xy1.fX, xy1.fY, tt2, xy2.fX, xy2.fY); in oneOffTest1()
359 outer, inner, tt1, xy1.fX, xy1.fY, tt2); in oneOffTest1()
402 double tt2 = intersections2[1][pt]; in coincidentTestOne() local
404 SkDPoint pt2 = quad2.ptAtT(tt2); in coincidentTestOne()
DPathOpsQuadLineIntersectionTest.cpp142 double tt2 = intersections[1][pt]; in DEF_TEST() local
143 REPORTER_ASSERT(reporter, tt2 >= 0 && tt2 <= 1); in DEF_TEST()
144 SkDPoint t2 = line.ptAtT(tt2); in DEF_TEST()
147 __FUNCTION__, iIndex, pt, tt1, t1.fX, t1.fY, tt2, t2.fX, t2.fY); in DEF_TEST()
DPathOpsConicLineIntersectionTest.cpp137 double tt2 = intersections[1][pt]; in DEF_TEST() local
138 REPORTER_ASSERT(reporter, tt2 >= 0 && tt2 <= 1); in DEF_TEST()
139 SkDPoint t2 = line.ptAtT(tt2); in DEF_TEST()
142 __FUNCTION__, iIndex, pt, tt1, t1.fX, t1.fY, tt2, t2.fX, t2.fY); in DEF_TEST()
DPathOpsCubicIntersectionTest.cpp62 double tt2 = tIntersections[1][pt]; in standardTestCases() local
63 SkDPoint xy2 = c2.ptAtT(tt2); in standardTestCases()
66 __FUNCTION__, (int)index, pt, tt1, xy1.fX, xy1.fY, tt2, xy2.fX, xy2.fY); in standardTestCases()
417 double tt1, tt2; in oneOff() local
422 tt2 = intersections[1][pt3]; in oneOff()
423 xy2 = c2.ptAtT(tt2); in oneOff()
428 iPt.fY, xy2.fX, xy2.fY, tt2); in oneOff()
518 double tt2 = intersections2[1][pt]; in CubicIntersection_RandTest() local
519 SkDPoint xy2 = c2.ptAtT(tt2); in CubicIntersection_RandTest()
DPathOpsCubicQuadIntersectionTest.cpp81 double tt2 = i[1][pt]; in cubicQuadIntersection() local
82 SkDPoint xy2 = quad.ptAtT(tt2); in cubicQuadIntersection()
85 __FUNCTION__, iIndex, pt, tt1, xy1.fX, xy1.fY, tt2, xy2.fX, xy2.fY); in cubicQuadIntersection()
DPathOpsCubicConicIntersectionTest.cpp71 double tt2 = i[1][pt]; in cubicConicIntersection() local
72 SkDPoint xy2 = conic.ptAtT(tt2); in cubicConicIntersection()
75 __FUNCTION__, index, pt, tt1, xy1.fX, xy1.fY, tt2, xy2.fX, xy2.fY); in cubicConicIntersection()
DPathOpsConicQuadIntersectionTest.cpp60 double tt2 = i[1][pt]; in conicQuadIntersection() local
61 SkDPoint xy2 = quad.ptAtT(tt2); in conicQuadIntersection()
64 __FUNCTION__, index, pt, tt1, xy1.fX, xy1.fY, tt2, xy2.fX, xy2.fY); in conicQuadIntersection()
DPathOpsCubicLineIntersectionTest.cpp156 double tt2 = i[1][pt]; in testOne() local
157 SkDPoint xy2 = line.ptAtT(tt2); in testOne()
160 __FUNCTION__, iIndex, pt, tt1, xy1.fX, xy1.fY, tt2, xy2.fX, xy2.fY); in testOne()
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/spec/types/object_types/constructor_types/
Dconstructor_types_4.ts45 let tt2 = new Animal("caihua2", 12); variable
46 Assert.equal(tt2.name, "caihua2");
47 Assert.equal(tt2.age, 12);
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/spec/classes/constructor_declarations/constructor_parameters/
Dconstructor_parameters_1.ts50 let tt2 = new Animal1("caihua2", 12); variable
51 Assert.equal(tt2.name, "caihua2");
52 Assert.equal(tt2.age, 12);
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/spec/types/specifying_members/construct_signatures/
Dconstruct_signatures.ts52 let tt2 = new AnimalConstructor("caihua2", 12); variable
53 Assert.equal(tt2.name, "caihua2");
54 Assert.equal(tt2.age, 12);
/third_party/typescript/tests/cases/compiler/
DtupleTypes.ts35 var tt2 = tt[2]; variable
36 var tt2: number | string; variable

12