/third_party/typescript/tests/baselines/reference/ |
D | anyAssignabilityInInheritance.js | 15 declare function foo3(x: string): string; 16 declare function foo3(x: any): any; 17 var r3 = foo3(a); // any 21 var r3 = foo3(a); // any 25 var r3 = foo3(a); // any 29 var r3 = foo3(a); // any 33 var r3 = foo3(a); // any 37 var r3 = foo3(a); // any 42 var r3 = foo3(a); // any 47 var r3 = foo3(a); // any [all …]
|
D | anyAssignabilityInInheritance.types | 29 declare function foo3(x: string): string; 30 >foo3 : { (x: string): string; (x: any): any; } 33 declare function foo3(x: any): any; 34 >foo3 : { (x: string): string; (x: any): any; } 37 var r3 = foo3(a); // any 39 >foo3(a) : any 40 >foo3 : { (x: string): string; (x: any): any; } 51 var r3 = foo3(a); // any 53 >foo3(a) : any 54 >foo3 : { (x: string): string; (x: any): any; } [all …]
|
D | es6ModuleFunctionDeclaration.js | 10 export function foo3() { function 16 foo3(); 20 export function foo3() { 26 foo3(); 28 m1.foo3(); 40 function foo3() { function 42 m1.foo3 = foo3; 47 foo3(); 52 function foo3() { function 54 m2.foo3 = foo3; [all …]
|
D | es6ModuleFunctionDeclaration.symbols | 17 export function foo3() { 18 >foo3 : Symbol(foo3, Decl(es6ModuleFunctionDeclaration.ts, 7, 18)) 29 foo3(); 30 >foo3 : Symbol(foo3, Decl(es6ModuleFunctionDeclaration.ts, 7, 18)) 38 export function foo3() { 39 >foo3 : Symbol(foo3, Decl(es6ModuleFunctionDeclaration.ts, 17, 11)) 50 foo3(); 51 >foo3 : Symbol(foo3, Decl(es6ModuleFunctionDeclaration.ts, 17, 11)) 56 m1.foo3(); 57 >m1.foo3 : Symbol(m1.foo3, Decl(es6ModuleFunctionDeclaration.ts, 7, 18)) [all …]
|
D | es6ModuleFunctionDeclaration.types | 19 export function foo3() { 20 >foo3 : () => void 33 foo3(); 34 >foo3() : void 35 >foo3 : () => void 44 export function foo3() { 45 >foo3 : () => void 58 foo3(); 59 >foo3() : void 60 >foo3 : () => void [all …]
|
D | funClodule.js | 16 function foo3() { } function 17 module foo3 { 20 class foo3 { } // Should error class 23 function foo3() { } 24 (function (foo3) { argument 26 foo3.x = x; 27 })(foo3 || (foo3 = {})); 28 var foo3 = /** @class */ (function () { 29 function foo3() { function 31 return foo3;
|
D | genericCallWithFunctionTypedArguments.js | 21 function foo3<T, U>(x: T, cb: (a: T) => U, y: U) { 25 var r7 = foo3(1, <Z>(a: Z) => '', ''); // string 27 var r8 = foo3(1, function (a) { return '' }, 1); // error 28 var r9 = foo3<number, string>(1, (a) => '', ''); // string 34 var r11 = foo3(1, (x: T) => '', ''); // error 35 var r11b = foo3(1, (x: T) => '', 1); // error 36 var r12 = foo3(1, function (a) { return '' }, 1); // error 54 function foo3(x, cb, y) { function 57 var r7 = foo3(1, function (a) { return ''; }, ''); // string 58 var r8 = foo3(1, function (a) { return ''; }, 1); // error [all …]
|
D | anyAssignabilityInInheritance.symbols | 30 declare function foo3(x: string): string; 31 >foo3 : Symbol(foo3, Decl(anyAssignabilityInInheritance.ts, 11, 17), Decl(anyAssignabilityInInherit… 34 declare function foo3(x: any): any; 35 >foo3 : Symbol(foo3, Decl(anyAssignabilityInInheritance.ts, 11, 17), Decl(anyAssignabilityInInherit… 38 var r3 = foo3(a); // any 40 >foo3 : Symbol(foo3, Decl(anyAssignabilityInInheritance.ts, 11, 17), Decl(anyAssignabilityInInherit… 51 var r3 = foo3(a); // any 53 >foo3 : Symbol(foo3, Decl(anyAssignabilityInInheritance.ts, 11, 17), Decl(anyAssignabilityInInherit… 66 var r3 = foo3(a); // any 68 >foo3 : Symbol(foo3, Decl(anyAssignabilityInInheritance.ts, 11, 17), Decl(anyAssignabilityInInherit… [all …]
|
D | typeParametersAreIdenticalToThemselves.js | 12 function foo3<T, U>(x: T, y: U) { 31 foo3<T>(x: T); 32 foo3<T>(x: T); // no error, different declaration for each T 33 foo3<T>(x: T) { } 49 foo3<T>(x: T); 50 foo3<T>(x: T); // no error, different declaration for each T 51 foo3<T>(x: T) { } 61 foo3<T>(x: T); 62 foo3<T>(x: T); // no error, different declaration for each T 75 foo3<T>(x: T); [all …]
|
D | genericClassWithFunctionTypedMemberArguments.js | 41 foo3(x: T, cb: (a: T) => U, y: U) { 47 var r7 = c2.foo3(1, <Z>(a: Z) => '', ''); // string 48 var r8 = c2.foo3(1, function (a) { return '' }, ''); // string 51 foo3<T,U>(x: T, cb: (a: T) => U, y: U) { field in C3 61 var r11 = c3.foo3(1, (x: T) => '', ''); // error 62 var r11b = c3.foo3(1, (x: T) => '', 1); // error 63 var r12 = c3.foo3(1, function (a) { return '' }, 1); // error 113 C2.prototype.foo3 = function (x, cb, y) { method in C2 119 var r7 = c2.foo3(1, function (a) { return ''; }, ''); // string 120 var r8 = c2.foo3(1, function (a) { return ''; }, ''); // string [all …]
|
D | funClodule.types | 28 function foo3() { } 29 >foo3 : typeof foo3 31 module foo3 { 32 >foo3 : typeof foo3 37 class foo3 { } // Should error 38 >foo3 : foo3
|
D | genericCallWithFunctionTypedArguments.types | 79 function foo3<T, U>(x: T, cb: (a: T) => U, y: U) { 80 >foo3 : <T, U>(x: T, cb: (a: T) => U, y: U) => U 92 var r7 = foo3(1, <Z>(a: Z) => '', ''); // string 94 >foo3(1, <Z>(a: Z) => '', '') : string 95 >foo3 : <T, U>(x: T, cb: (a: T) => U, y: U) => U 102 var r8 = foo3(1, function (a) { return '' }, 1); // error 104 >foo3(1, function (a) { return '' }, 1) : 1 105 >foo3 : <T, U>(x: T, cb: (a: T) => U, y: U) => U 112 var r9 = foo3<number, string>(1, (a) => '', ''); // string 114 >foo3<number, string>(1, (a) => '', '') : string [all …]
|
D | genericCallWithFunctionTypedArguments2.js | 35 function foo3<T, U>(x: T, cb: new(a: T) => U, y: U) { 39 var r7 = foo3(null, i, ''); // any 40 var r7b = foo3(null, a, ''); // any 41 var r8 = foo3(1, i2, 1); // error 42 var r9 = foo3<string, string>('', i2, ''); // string 64 function foo3(x, cb, y) { function 67 var r7 = foo3(null, i, ''); // any 68 var r7b = foo3(null, a, ''); // any 69 var r8 = foo3(1, i2, 1); // error 70 var r9 = foo3('', i2, ''); // string
|
D | assignmentCompatBug5.symbols | 18 function foo3(x: (n: number) =>number) { }; 19 >foo3 : Symbol(foo3, Decl(assignmentCompatBug5.ts, 4, 17)) 23 foo3((s:string) => { }); 24 >foo3 : Symbol(foo3, Decl(assignmentCompatBug5.ts, 4, 17)) 27 foo3((n) => { return; }); 28 >foo3 : Symbol(foo3, Decl(assignmentCompatBug5.ts, 4, 17))
|
D | genericCallWithFunctionTypedArguments.symbols | 71 function foo3<T, U>(x: T, cb: (a: T) => U, y: U) { 72 >foo3 : Symbol(foo3, Decl(genericCallWithFunctionTypedArguments.ts, 17, 50)) 89 var r7 = foo3(1, <Z>(a: Z) => '', ''); // string 91 >foo3 : Symbol(foo3, Decl(genericCallWithFunctionTypedArguments.ts, 17, 50)) 96 var r8 = foo3(1, function (a) { return '' }, 1); // error 98 >foo3 : Symbol(foo3, Decl(genericCallWithFunctionTypedArguments.ts, 17, 50)) 101 var r9 = foo3<number, string>(1, (a) => '', ''); // string 103 >foo3 : Symbol(foo3, Decl(genericCallWithFunctionTypedArguments.ts, 17, 50)) 126 var r11 = foo3(1, (x: T) => '', ''); // error 128 >foo3 : Symbol(foo3, Decl(genericCallWithFunctionTypedArguments.ts, 17, 50)) [all …]
|
D | genericClassWithFunctionTypedMemberArguments.symbols | 149 foo3(x: T, cb: (a: T) => U, y: U) { 150 >foo3 : Symbol(C2.foo3, Decl(genericClassWithFunctionTypedMemberArguments.ts, 38, 20)) 170 var r7 = c2.foo3(1, <Z>(a: Z) => '', ''); // string 172 >c2.foo3 : Symbol(C2.foo3, Decl(genericClassWithFunctionTypedMemberArguments.ts, 38, 20)) 174 >foo3 : Symbol(C2.foo3, Decl(genericClassWithFunctionTypedMemberArguments.ts, 38, 20)) 179 var r8 = c2.foo3(1, function (a) { return '' }, ''); // string 181 >c2.foo3 : Symbol(C2.foo3, Decl(genericClassWithFunctionTypedMemberArguments.ts, 38, 20)) 183 >foo3 : Symbol(C2.foo3, Decl(genericClassWithFunctionTypedMemberArguments.ts, 38, 20)) 191 foo3<T,U>(x: T, cb: (a: T) => U, y: U) { 192 >foo3 : Symbol(C3.foo3, Decl(genericClassWithFunctionTypedMemberArguments.ts, 48, 20)) [all …]
|
D | propertyAssignmentUseParentType3.types | 30 function foo3(): string { 31 >foo3 : typeof foo3 36 foo3.trim = ""; 37 >foo3.trim = "" : "" 38 >foo3.trim : string 39 >foo3 : typeof foo3
|
D | funClodule.symbols | 28 function foo3() { } 29 >foo3 : Symbol(foo3, Decl(funClodule.ts, 11, 24), Decl(funClodule.ts, 14, 19), Decl(funClodule.ts, … 31 module foo3 { 32 >foo3 : Symbol(foo3, Decl(funClodule.ts, 11, 24), Decl(funClodule.ts, 14, 19), Decl(funClodule.ts, … 37 class foo3 { } // Should error 38 >foo3 : Symbol(foo3, Decl(funClodule.ts, 11, 24), Decl(funClodule.ts, 14, 19), Decl(funClodule.ts, …
|
D | genericClassWithFunctionTypedMemberArguments.types | 157 foo3(x: T, cb: (a: T) => U, y: U) { 158 >foo3 : (x: T, cb: (a: T) => U, y: U) => U 174 var r7 = c2.foo3(1, <Z>(a: Z) => '', ''); // string 176 >c2.foo3(1, <Z>(a: Z) => '', '') : string 177 >c2.foo3 : (x: number, cb: (a: number) => string, y: string) => string 179 >foo3 : (x: number, cb: (a: number) => string, y: string) => string 186 var r8 = c2.foo3(1, function (a) { return '' }, ''); // string 188 >c2.foo3(1, function (a) { return '' }, '') : string 189 >c2.foo3 : (x: number, cb: (a: number) => string, y: string) => string 191 >foo3 : (x: number, cb: (a: number) => string, y: string) => string [all …]
|
D | assignmentCompatBug5.types | 25 function foo3(x: (n: number) =>number) { }; 26 >foo3 : (x: (n: number) => number) => void 30 foo3((s:string) => { }); 31 >foo3((s:string) => { }) : void 32 >foo3 : (x: (n: number) => number) => void 36 foo3((n) => { return; }); 37 >foo3((n) => { return; }) : void 38 >foo3 : (x: (n: number) => number) => void
|
D | propertyAssignmentUseParentType3.symbols | 24 function foo3(): string { 25 >foo3 : Symbol(foo3, Decl(propertyAssignmentUseParentType3.ts, 10, 15), Decl(propertyAssignmentUseP… 29 foo3.trim = ""; 30 >foo3.trim : Symbol(foo3.trim, Decl(propertyAssignmentUseParentType3.ts, 14, 1)) 31 >foo3 : Symbol(foo3, Decl(propertyAssignmentUseParentType3.ts, 10, 15), Decl(propertyAssignmentUseP… 32 >trim : Symbol(foo3.trim, Decl(propertyAssignmentUseParentType3.ts, 14, 1))
|
D | typeParametersAreIdenticalToThemselves.types | 28 function foo3<T, U>(x: T, y: U) { 29 >foo3 : <T, U>(x: T, y: U) => void 88 foo3<T>(x: T); 89 >foo3 : { <T>(x: T): any; <T>(x: T): any; } 92 foo3<T>(x: T); // no error, different declaration for each T 93 >foo3 : { <T>(x: T): any; <T>(x: T): any; } 96 foo3<T>(x: T) { } 97 >foo3 : { <T>(x: T): any; <T>(x: T): any; } 143 foo3<T>(x: T); 144 >foo3 : { <T>(x: T): any; <T>(x: T): any; } [all …]
|
/third_party/typescript/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/ |
D | anyAssignabilityInInheritance.ts | 14 declare function foo3(x: string): string; 15 declare function foo3(x: any): any; 16 var r3 = foo3(a); // any 20 var r3 = foo3(a); // any 24 var r3 = foo3(a); // any 28 var r3 = foo3(a); // any 32 var r3 = foo3(a); // any 36 var r3 = foo3(a); // any 41 var r3 = foo3(a); // any 46 var r3 = foo3(a); // any [all …]
|
/third_party/glslang/Test/ |
D | 400.vert | 16 void foo3(double a, float b) {} 17 void foo3(float a, double b) {} 70 foo3(d, d); // ERROR, no match 71 foo3(d, u); 72 foo3(d, i); 73 foo3(d, f); 75 foo3(f, d); 76 foo3(f, u); // ERROR, ambiguous 77 foo3(f, i); // ERROR, ambiguous 78 foo3(f, f); // ERROR, ambiguous [all …]
|
/third_party/typescript/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/ |
D | typeParametersAreIdenticalToThemselves.ts | 11 function foo3<T, U>(x: T, y: U) { function 30 foo3<T>(x: T); method in C 31 foo3<T>(x: T); // no error, different declaration for each T 32 foo3<T>(x: T) { } 48 foo3<T>(x: T); method in C2 49 foo3<T>(x: T); // no error, different declaration for each T 50 foo3<T>(x: T) { } 60 foo3<T>(x: T); method 61 foo3<T>(x: T); // no error, different declaration for each T method 74 foo3<T>(x: T); method [all …]
|