/third_party/typescript/tests/baselines/reference/ |
D | primitiveConstraints2.symbols | 6 public bar2<U extends T>(x: T, y: U): T { 7 >bar2 : Symbol(C.bar2, Decl(primitiveConstraints2.ts, 0, 12)) 24 x.bar2(2, ""); // should error 25 >x.bar2 : Symbol(C.bar2, Decl(primitiveConstraints2.ts, 0, 12)) 27 >bar2 : Symbol(C.bar2, Decl(primitiveConstraints2.ts, 0, 12)) 29 x.bar2<string>(2, ""); // should error 30 >x.bar2 : Symbol(C.bar2, Decl(primitiveConstraints2.ts, 0, 12)) 32 >bar2 : Symbol(C.bar2, Decl(primitiveConstraints2.ts, 0, 12))
|
D | primitiveConstraints2.types | 5 public bar2<U extends T>(x: T, y: U): T { 6 >bar2 : <U extends T>(x: T, y: U) => T 20 x.bar2(2, ""); // should error 21 >x.bar2(2, "") : number 22 >x.bar2 : <U extends number>(x: number, y: U) => number 24 >bar2 : <U extends number>(x: number, y: U) => number 28 x.bar2<string>(2, ""); // should error 29 >x.bar2<string>(2, "") : number 30 >x.bar2 : <U extends number>(x: number, y: U) => number 32 >bar2 : <U extends number>(x: number, y: U) => number
|
D | escapedIdentifiers.types | 149 bar2: number; 150 >bar2 : number 181 var interfaceType2Object1 = <interfaceType2>{ bar2: 0 }; 183 ><interfaceType2>{ bar2: 0 } : interfaceType\u0032 184 >{ bar2: 0 } : { bar2: number; } 185 >bar2 : number 188 interfaceType2Object1.bar2 = 2; 189 >interfaceType2Object1.bar2 = 2 : 2 190 >interfaceType2Object1.bar2 : number 192 >bar2 : number [all …]
|
D | collisionExportsRequireAndAlias.js | 8 export function bar2() { function 17 exports.bar2(); 33 exports.bar2 = void 0; 34 function bar2() { function 36 exports.bar2 = bar2; 48 exports.bar2();
|
D | collisionExportsRequireAndAlias.symbols | 19 exports.bar2(); 20 >exports.bar2 : Symbol(exports.bar2, Decl(collisionExportsRequireAndAlias_file3333.ts, 0, 0)) 22 >bar2 : Symbol(exports.bar2, Decl(collisionExportsRequireAndAlias_file3333.ts, 0, 0)) 30 export function bar2() { 31 >bar2 : Symbol(bar2, Decl(collisionExportsRequireAndAlias_file3333.ts, 0, 0))
|
D | genericConstraint1.symbols | 6 public bar2<U extends T>(x: T, y: U): T { 7 >bar2 : Symbol(C.bar2, Decl(genericConstraint1.ts, 0, 12)) 24 x.bar2<string>(2, ""); 25 >x.bar2 : Symbol(C.bar2, Decl(genericConstraint1.ts, 0, 12)) 27 >bar2 : Symbol(C.bar2, Decl(genericConstraint1.ts, 0, 12))
|
D | primitiveConstraints2.js | 3 public bar2<U extends T>(x: T, y: U): T { field in C 9 x.bar2(2, ""); // should error 10 x.bar2<string>(2, ""); // should error 16 C.prototype.bar2 = function (x, y) { method in C 22 x.bar2(2, ""); // should error 23 x.bar2(2, ""); // should error
|
D | collisionExportsRequireAndAlias.types | 20 exports.bar2(); 21 >exports.bar2() : void 22 >exports.bar2 : () => void 24 >bar2 : () => void 32 export function bar2() { 33 >bar2 : () => void
|
D | genericConstraint1.types | 5 public bar2<U extends T>(x: T, y: U): T { 6 >bar2 : <U extends T>(x: T, y: U) => T 20 x.bar2<string>(2, ""); 21 >x.bar2<string>(2, "") : number 22 >x.bar2 : <U extends number>(x: number, y: U) => number 24 >bar2 : <U extends number>(x: number, y: U) => number
|
D | constructorOverloads1.symbols | 22 bar2() { /*WScript.Echo("bar1");*/ } 23 >bar2 : Symbol(Foo.bar2, Decl(constructorOverloads1.ts, 9, 41)) 51 f1.bar2(); 52 >f1.bar2 : Symbol(Foo.bar2, Decl(constructorOverloads1.ts, 9, 41)) 54 >bar2 : Symbol(Foo.bar2, Decl(constructorOverloads1.ts, 9, 41))
|
D | escapedIdentifiers.js | 58 bar2: number; 65 var interfaceType2Object1 = <interfaceType2>{ bar2: 0 }; 66 interfaceType2Object1.bar2 = 2; 67 var interfaceType2Object2 = <interfaceType\u0032>{ bar2: 0 }; 68 interfaceType2Object2.bar2 = 2; 174 var interfaceType2Object1 = { bar2: 0 }; property 175 interfaceType2Object1.bar2 = 2; 176 var interfaceType2Object2 = { bar2: 0 }; property 177 interfaceType2Object2.bar2 = 2;
|
D | declarationEmitRetainsJsdocyComments.types | 7 >foo : (p: string) => { bar: (s: number) => void; bar2(s: number): void; } 8 … * @param s */ bar2(s: number) {}, }} : (p: string) => { bar: (s: numbe… 12 …comment3 * @param s */ bar2(s: number) {}, } : { bar: (s: number) => vo… 27 bar2(s: number) {}, 28 >bar2 : (s: number) => void
|
D | escapedIdentifiers.symbols | 127 bar2: number; 128 >bar2 : Symbol(interfaceType\u0032.bar2, Decl(escapedIdentifiers.ts, 55, 31)) 151 var interfaceType2Object1 = <interfaceType2>{ bar2: 0 }; 154 >bar2 : Symbol(bar2, Decl(escapedIdentifiers.ts, 63, 45)) 156 interfaceType2Object1.bar2 = 2; 157 >interfaceType2Object1.bar2 : Symbol(interfaceType\u0032.bar2, Decl(escapedIdentifiers.ts, 55, 31)) 159 >bar2 : Symbol(interfaceType\u0032.bar2, Decl(escapedIdentifiers.ts, 55, 31)) 161 var interfaceType2Object2 = <interfaceType\u0032>{ bar2: 0 }; 164 >bar2 : Symbol(bar2, Decl(escapedIdentifiers.ts, 65, 50)) 166 interfaceType2Object2.bar2 = 2; [all …]
|
D | typeGuardsWithInstanceOfByConstructorSignature.js | 58 bar2: number; 67 obj5.bar2; 74 obj6.bar2; 105 bar2: number; 113 obj9.bar2; 120 obj10.bar2; 233 obj5.bar2; 239 obj6.bar2; 255 obj9.bar2; 261 obj10.bar2;
|
D | constructorOverloads1.types | 22 bar2() { /*WScript.Echo("bar1");*/ } 23 >bar2 : () => void 59 f1.bar2(); 60 >f1.bar2() : void 61 >f1.bar2 : () => void 63 >bar2 : () => void
|
D | inferTypes2.js | 12 export function bar2<T>(obj: T) { 29 exports.bar2 = exports.bar = void 0; 34 function bar2(obj) { function 37 exports.bar2 = bar2; 51 export declare function bar2<T>(obj: T): T extends {
|
D | propertyAssignment.symbols | 13 var bar2: { x : number; } 14 >bar2 : Symbol(bar2, Decl(propertyAssignment.ts, 4, 3)) 30 foo2 = bar2; 32 >bar2 : Symbol(bar2, Decl(propertyAssignment.ts, 4, 3))
|
D | propertyAssignment.types | 14 var bar2: { x : number; } 15 >bar2 : { x: number; } 32 foo2 = bar2; 33 >foo2 = bar2 : { x: number; } 35 >bar2 : { x: number; }
|
D | genericConstraint1.js | 3 public bar2<U extends T>(x: T, y: U): T { field in C 9 x.bar2<string>(2, ""); 15 C.prototype.bar2 = function (x, y) { method in C 21 x.bar2(2, "");
|
D | propertyAssignment.js | 6 var bar2: { x : number; } variable 14 foo2 = bar2; 21 var bar2; variable 25 foo2 = bar2;
|
D | typeGuardsWithInstanceOfByConstructorSignature.errors.txt | 6 …dsWithInstanceOfByConstructorSignature.ts(66,10): error TS2339: Property 'bar2' does not exist on … 9 …dsWithInstanceOfByConstructorSignature.ts(73,10): error TS2339: Property 'bar2' does not exist on … 10 Property 'bar2' does not exist on type 'C1'. 13 …sWithInstanceOfByConstructorSignature.ts(112,10): error TS2339: Property 'bar2' does not exist on … 16 …sWithInstanceOfByConstructorSignature.ts(119,11): error TS2339: Property 'bar2' does not exist on … 17 Property 'bar2' does not exist on type 'E1'. 96 bar2: number; 105 obj5.bar2; 107 !!! error TS2339: Property 'bar2' does not exist on type 'C1'. 117 obj6.bar2; [all …]
|
D | typeGuardsWithInstanceOfByConstructorSignature.types | 146 bar2: number; 147 >bar2 : number 175 obj5.bar2; 176 >obj5.bar2 : any 178 >bar2 : any 199 obj6.bar2; 200 >obj6.bar2 : any 202 >bar2 : any 266 bar2: number; 267 >bar2 : number [all …]
|
D | constructorOverloads1.js | 12 bar2() { /*WScript.Echo("bar1");*/ } method in Foo 21 f1.bar2(); 29 Foo.prototype.bar2 = function () { }; method in Foo 37 f1.bar2();
|
/third_party/typescript/tests/cases/compiler/ |
D | escapedIdentifiers.ts | 60 bar2: number; property 67 var interfaceType2Object1 = <interfaceType2>{ bar2: 0 }; variable 68 interfaceType2Object1.bar2 = 2; 69 var interfaceType2Object2 = <interfaceType\u0032>{ bar2: 0 }; variable 70 interfaceType2Object2.bar2 = 2;
|
/third_party/typescript/tests/cases/conformance/expressions/typeGuards/ |
D | typeGuardsWithInstanceOfByConstructorSignature.ts | 57 bar2: number; property 66 obj5.bar2; 73 obj6.bar2; 104 bar2: number; property 112 obj9.bar2; 119 obj10.bar2;
|