/third_party/typescript/tests/baselines/reference/ |
D | mixingStaticAndInstanceOverloads.symbols | 70 foo5(n: number); 71 >foo5 : Symbol(C5.foo5, Decl(mixingStaticAndInstanceOverloads.ts, 24, 10), Decl(mixingStaticAndInst… 74 foo5(s: string); 75 >foo5 : Symbol(C5.foo5, Decl(mixingStaticAndInstanceOverloads.ts, 24, 10), Decl(mixingStaticAndInst… 78 foo5(a) { } 79 >foo5 : Symbol(C5.foo5, Decl(mixingStaticAndInstanceOverloads.ts, 24, 10), Decl(mixingStaticAndInst… 83 static foo5(n: number); 84 >foo5 : Symbol(C5.foo5, Decl(mixingStaticAndInstanceOverloads.ts, 28, 15), Decl(mixingStaticAndInst… 87 static foo5(s: string); 88 >foo5 : Symbol(C5.foo5, Decl(mixingStaticAndInstanceOverloads.ts, 28, 15), Decl(mixingStaticAndInst… [all …]
|
D | mixingStaticAndInstanceOverloads.types | 70 foo5(n: number); 71 >foo5 : { (n: number): any; (s: string): any; } 74 foo5(s: string); 75 >foo5 : { (n: number): any; (s: string): any; } 78 foo5(a) { } 79 >foo5 : { (n: number): any; (s: string): any; } 83 static foo5(n: number); 84 >foo5 : { (n: number): any; (s: string): any; } 87 static foo5(s: string); 88 >foo5 : { (n: number): any; (s: string): any; } [all …]
|
D | recursiveTypesUsedAsFunctionParameters.js | 34 function foo5<V>(x: T): string; 35 function foo5<V>(x: List<V>): number; 36 function foo5<V>(x: MyList<V>): boolean; 37 function foo5<V>(x: any): any { return null; } 42 var r = foo5(list); 43 var r2 = foo5(myList); 64 function foo5(x) { return null; } function 67 var r = foo5(list); 68 var r2 = foo5(myList);
|
D | mixingStaticAndInstanceOverloads.js | 28 foo5(n: number); 29 foo5(s: string); 30 foo5(a) { } method in C5 33 static foo5(n: number); 34 static foo5(s: string); 35 static foo5(a) { } method in C5 66 C5.prototype.foo5 = function (a) { }; method in C5 67 C5.foo5 = function (a) { }; function in C5
|
D | recursiveTypesUsedAsFunctionParameters.types | 72 function foo5<V>(x: T): string; 73 >foo5 : { <V>(x: T): string; <V>(x: List<V>): number; <V>(x: MyList<V>): boolean; } 76 function foo5<V>(x: List<V>): number; 77 >foo5 : { <V>(x: T): string; <V>(x: List<V>): number; <V>(x: MyList<V>): boolean; } 80 function foo5<V>(x: MyList<V>): boolean; 81 >foo5 : { <V>(x: T): string; <V>(x: List<V>): number; <V>(x: MyList<V>): boolean; } 84 function foo5<V>(x: any): any { return null; } 85 >foo5 : { <V>(x: T): string; <V>(x: List<V>): number; <V>(x: MyList<V>): boolean; } 95 var r = foo5(list); 97 >foo5(list) : number [all …]
|
D | recursiveTypesUsedAsFunctionParameters.symbols | 112 function foo5<V>(x: T): string; 113 >foo5 : Symbol(foo5, Decl(recursiveTypesUsedAsFunctionParameters.ts, 29, 36), Decl(recursiveTypesUs… 118 function foo5<V>(x: List<V>): number; 119 >foo5 : Symbol(foo5, Decl(recursiveTypesUsedAsFunctionParameters.ts, 29, 36), Decl(recursiveTypesUs… 125 function foo5<V>(x: MyList<V>): boolean; 126 >foo5 : Symbol(foo5, Decl(recursiveTypesUsedAsFunctionParameters.ts, 29, 36), Decl(recursiveTypesUs… 132 function foo5<V>(x: any): any { return null; } 133 >foo5 : Symbol(foo5, Decl(recursiveTypesUsedAsFunctionParameters.ts, 29, 36), Decl(recursiveTypesUs… 145 var r = foo5(list); 147 >foo5 : Symbol(foo5, Decl(recursiveTypesUsedAsFunctionParameters.ts, 29, 36), Decl(recursiveTypesUs… [all …]
|
D | primtiveTypesAreIdentical.symbols | 52 function foo5(x: 'a'); 53 >foo5 : Symbol(foo5, Decl(primtiveTypesAreIdentical.ts, 16, 25), Decl(primtiveTypesAreIdentical.ts,… 56 function foo5(x: 'a'); 57 >foo5 : Symbol(foo5, Decl(primtiveTypesAreIdentical.ts, 16, 25), Decl(primtiveTypesAreIdentical.ts,… 60 function foo5(x: string); 61 >foo5 : Symbol(foo5, Decl(primtiveTypesAreIdentical.ts, 16, 25), Decl(primtiveTypesAreIdentical.ts,… 64 function foo5(x: any) { } 65 >foo5 : Symbol(foo5, Decl(primtiveTypesAreIdentical.ts, 16, 25), Decl(primtiveTypesAreIdentical.ts,…
|
D | primtiveTypesAreIdentical.js | 20 function foo5(x: 'a'); 21 function foo5(x: 'a'); 22 function foo5(x: string); 23 function foo5(x: any) { } function 40 function foo5(x) { }
|
D | duplicateExportAssignments.symbols | 63 === tests/cases/conformance/externalModules/foo5.ts === 65 >x : Symbol(x, Decl(foo5.ts, 0, 3)) 68 >y : Symbol(y, Decl(foo5.ts, 1, 3)) 71 >z : Symbol(z, Decl(foo5.ts, 2, 3)) 74 >x : Symbol(x, Decl(foo5.ts, 0, 3)) 77 >y : Symbol(y, Decl(foo5.ts, 1, 3)) 80 >z : Symbol(z, Decl(foo5.ts, 2, 3))
|
D | genericCallWithOverloadedFunctionTypedArguments.js | 21 function foo5<T>(cb: { (x: T): string; (x: number): T }) { 25 …var r5 = foo5(x => x); // any => string (+1 overload) [inferences are made for T, but lambda not c… 27 var r7 = foo5(a); // any => string (+1 overload) 62 function foo5(cb) { function 65 …var r5 = foo5(function (x) { return x; }); // any => string (+1 overload) [inferences are made for… 67 var r7 = foo5(a); // any => string (+1 overload)
|
D | propertySignatures.symbols | 35 var foo5: {();}; 36 >foo5 : Symbol(foo5, Decl(propertySignatures.ts, 16, 3)) 38 var test = foo5(); 40 >foo5 : Symbol(foo5, Decl(propertySignatures.ts, 16, 3))
|
D | genericCallWithOverloadedConstructorTypedArguments.js | 21 function foo5<T>(cb: { new(x: T): string; new(x: number): T }) { 29 var r5 = foo5(a); // new{} => string; new(x:number) => {} 31 var r7 = foo5(b); // new any => string; new(x:number) => any 66 function foo5(cb) { function 70 var r5 = foo5(a); // new{} => string; new(x:number) => {} 72 var r7 = foo5(b); // new any => string; new(x:number) => any
|
D | primtiveTypesAreIdentical.types | 52 function foo5(x: 'a'); 53 >foo5 : { (x: 'a'): any; (x: "a"): any; (x: string): any; } 56 function foo5(x: 'a'); 57 >foo5 : { (x: "a"): any; (x: 'a'): any; (x: string): any; } 60 function foo5(x: string); 61 >foo5 : { (x: "a"): any; (x: "a"): any; (x: string): any; } 64 function foo5(x: any) { } 65 >foo5 : { (x: "a"): any; (x: "a"): any; (x: string): any; }
|
D | propertySignatures.js | 18 var foo5: {();}; variable 19 var test = foo5(); 36 var foo5; variable 37 var test = foo5();
|
D | propertySignatures.types | 41 var foo5: {();}; 42 >foo5 : () => any 44 var test = foo5(); 46 >foo5() : any 47 >foo5 : () => any
|
D | genericCallWithConstraintsTypeArgumentInference.js | 55 foo5<T extends Derived, U extends Derived2>(t: T, u: U) { field in C 80 var r8 = c.foo5(d1, d2); // Derived 81 var r8b = c.foo5(d2, d2); // Derived2 92 foo5<T extends Derived, U extends Derived2>(t: T, u: U): T; 103 var r8 = i.foo5(d1, d2); // Derived 104 var r8b = i.foo5(d2, d2); // Derived2 184 C.prototype.foo5 = function (t, u) { method in C 206 var r8 = c.foo5(d1, d2); // Derived 207 var r8b = c.foo5(d2, d2); // Derived2 216 var r8 = i.foo5(d1, d2); // Derived [all …]
|
D | mixingStaticAndInstanceOverloads.errors.txt | 48 foo5(n: number); 49 foo5(s: string); 50 foo5(a) { } 53 static foo5(n: number); 54 static foo5(s: string); 55 static foo5(a) { }
|
D | destructuringSameNames.js | 26 const { foo5, bar5: foo5 } = { foo5: 50, bar5: 550 }; property 55 var _u = { foo5: 50, bar5: 550 }, foo5 = _u.foo5, foo5 = _u.bar5; variable
|
D | genericCallWithConstraintsTypeArgumentInference.types | 132 foo5<T extends Derived, U extends Derived2>(t: T, u: U) { 133 >foo5 : <T extends Derived, U extends Derived2>(t: T, u: U) => T 216 var r8 = c.foo5(d1, d2); // Derived 218 >c.foo5(d1, d2) : Derived 219 >c.foo5 : <T extends Derived, U extends Derived2>(t: T, u: U) => T 221 >foo5 : <T extends Derived, U extends Derived2>(t: T, u: U) => T 225 var r8b = c.foo5(d2, d2); // Derived2 227 >c.foo5(d2, d2) : Derived2 228 >c.foo5 : <T extends Derived, U extends Derived2>(t: T, u: U) => T 230 >foo5 : <T extends Derived, U extends Derived2>(t: T, u: U) => T [all …]
|
D | genericCallTypeArgumentInference.js | 42 foo5<T,U>(t: T, u: U) { field in C 67 var r8 = c.foo5(true, 1); // boolean 78 foo5<T, U>(t: T, u: U): T; 89 var r8 = i.foo5(true, 1); // boolean 126 C.prototype.foo5 = function (t, u) { method in C 148 var r8 = c.foo5(true, 1); // boolean 157 var r8 = i.foo5(true, 1); // boolean
|
D | objectTypesIdentityWithCallSignaturesDifferingParamCounts2.js | 26 function foo5(x: I2<string>); 27 function foo5(x: I2<number>); // ok 28 function foo5(x: any) { } function 52 function foo5(x) { }
|
/third_party/typescript/tests/cases/compiler/ |
D | mixingStaticAndInstanceOverloads.ts | 27 foo5(n: number); method in C5 28 foo5(s: string); 29 foo5(a) { } 32 static foo5(n: number); method in C5 33 static foo5(s: string); 34 static foo5(a) { }
|
/third_party/typescript/tests/cases/conformance/types/typeRelationships/recursiveTypes/ |
D | recursiveTypesUsedAsFunctionParameters.ts | 33 function foo5<V>(x: T): string; 34 function foo5<V>(x: List<V>): number; 35 function foo5<V>(x: MyList<V>): boolean; 36 function foo5<V>(x: any): any { return null; } 41 var r = foo5(list); 42 var r2 = foo5(myList);
|
/third_party/typescript/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/ |
D | primtiveTypesAreIdentical.ts | 19 function foo5(x: 'a'); function 20 function foo5(x: 'a'); 21 function foo5(x: string); 22 function foo5(x: any) { }
|
/third_party/typescript/tests/cases/conformance/types/typeRelationships/typeInference/ |
D | genericCallWithConstraintsTypeArgumentInference.ts | 54 foo5<T extends Derived, U extends Derived2>(t: T, u: U) { method in C 79 var r8 = c.foo5(d1, d2); // Derived 80 var r8b = c.foo5(d2, d2); // Derived2 91 foo5<T extends Derived, U extends Derived2>(t: T, u: U): T; method 102 var r8 = i.foo5(d1, d2); // Derived 103 var r8b = i.foo5(d2, d2); // Derived2
|