/third_party/typescript/tests/baselines/reference/ |
D | circularReference.symbols | 1 === tests/cases/conformance/externalModules/foo2.ts === 3 >foo1 : Symbol(foo1, Decl(foo2.ts, 0, 0)) 6 >M1 : Symbol(M1, Decl(foo2.ts, 0, 32)) 9 >C1 : Symbol(C1, Decl(foo2.ts, 1, 18)) 12 >m1 : Symbol(C1.m1, Decl(foo2.ts, 2, 18)) 13 >foo1 : Symbol(foo1, Decl(foo2.ts, 0, 0)) 18 >y : Symbol(C1.y, Decl(foo2.ts, 3, 17)) 22 >this.m1 : Symbol(C1.m1, Decl(foo2.ts, 2, 18)) 23 >this : Symbol(C1, Decl(foo2.ts, 1, 18)) 24 >m1 : Symbol(C1.m1, Decl(foo2.ts, 2, 18)) [all …]
|
D | spreadBooleanRespectsFreshness.types | 15 declare let foo2: Foo; 16 >foo2 : Foo 18 foo1 = [...Array.isArray(foo2) ? foo2 : [foo2]]; 19 >foo1 = [...Array.isArray(foo2) ? foo2 : [foo2]] : FooBase[] 21 >[...Array.isArray(foo2) ? foo2 : [foo2]] : FooBase[] 22 >...Array.isArray(foo2) ? foo2 : [foo2] : FooBase 23 >Array.isArray(foo2) ? foo2 : [foo2] : FooArray 24 >Array.isArray(foo2) : boolean 28 >foo2 : Foo 29 >foo2 : FooArray [all …]
|
D | functionConstraintSatisfaction2.js | 10 function foo2<T extends (x: string) => string>(x: T): T { return x; } 24 var r = foo2(new Function()); 25 var r2 = foo2((x: string[]) => x); 26 var r6 = foo2(C); 27 var r7 = foo2(b); 28 var r8 = foo2(<U>(x: U) => x); // no error expected 29 var r11 = foo2(<U, V>(x: U, y: V) => x); 30 var r13 = foo2(C2); 31 var r14 = foo2(b2); 35 var r16 = foo2(f2); [all …]
|
D | unionSubtypeIfEveryConstituentTypeIsSubtype.types | 20 foo2: e | number; // ok 21 >foo2 : number 31 foo2: e | number; // ok e and number both subtype of number 32 >foo2 : number 42 foo2: e | number; // error e and number both not subtype of string 43 >foo2 : number 54 foo2: e | number; 55 >foo2 : number 66 foo2: e | number; 67 >foo2 : number [all …]
|
D | circularReference.types | 1 === tests/cases/conformance/externalModules/foo2.ts === 75 import foo2 = require('./foo2'); 76 >foo2 : typeof foo2 84 m1: foo2.M1.C1; 85 >m1 : foo2.M1.C1 86 >foo2 : any 93 this.m1 = new foo2.M1.C1(); 94 >this.m1 = new foo2.M1.C1() : foo2.M1.C1 95 >this.m1 : foo2.M1.C1 97 >m1 : foo2.M1.C1 [all …]
|
D | functionConstraintSatisfaction2.types | 26 function foo2<T extends (x: string) => string>(x: T): T { return x; } 27 >foo2 : <T extends (x: string) => string>(x: T) => T 54 var r = foo2(new Function()); 56 >foo2(new Function()) : (x: string) => string 57 >foo2 : <T extends (x: string) => string>(x: T) => T 61 var r2 = foo2((x: string[]) => x); 63 >foo2((x: string[]) => x) : (x: string) => string 64 >foo2 : <T extends (x: string) => string>(x: T) => T 69 var r6 = foo2(C); 71 >foo2(C) : (x: string) => string [all …]
|
D | importTypeGenericTypes.symbols | 19 === tests/cases/conformance/types/import/foo2.ts === 21 >Bar : Symbol(Bar, Decl(foo2.ts, 0, 0), Decl(foo2.ts, 14, 1)) 24 >I : Symbol(I, Decl(foo2.ts, 0, 15)) 25 >T : Symbol(T, Decl(foo2.ts, 1, 23)) 28 >a : Symbol(I.a, Decl(foo2.ts, 1, 27)) 31 >b : Symbol(I.b, Decl(foo2.ts, 2, 18)) 34 >data : Symbol(I.data, Decl(foo2.ts, 3, 18)) 35 >T : Symbol(T, Decl(foo2.ts, 1, 23)) 40 >Baz : Symbol(Baz, Decl(foo2.ts, 6, 1)) 43 >J : Symbol(J, Decl(foo2.ts, 8, 22)) [all …]
|
D | importTypeLocal.symbols | 14 === tests/cases/conformance/types/import/foo2.ts === 16 >Bar : Symbol(Bar, Decl(foo2.ts, 0, 0), Decl(foo2.ts, 12, 1)) 19 >I : Symbol(I, Decl(foo2.ts, 0, 15)) 22 >a : Symbol(I.a, Decl(foo2.ts, 1, 24)) 25 >b : Symbol(I.b, Decl(foo2.ts, 2, 18)) 30 >Baz : Symbol(Baz, Decl(foo2.ts, 5, 1)) 33 >J : Symbol(J, Decl(foo2.ts, 7, 22)) 36 >a : Symbol(J.a, Decl(foo2.ts, 8, 24)) 39 >b : Symbol(J.b, Decl(foo2.ts, 9, 18)) 44 >Bar : Symbol(Bar, Decl(foo2.ts, 0, 0), Decl(foo2.ts, 12, 1)) [all …]
|
D | reexportClassDefinition.symbols | 2 import foo2 = require('./foo2') 3 >foo2 : Symbol(foo2, Decl(foo3.ts, 0, 0)) 5 class x extends foo2.x {} 7 >foo2.x : Symbol(x, Decl(foo2.ts, 2, 10)) 8 >foo2 : Symbol(foo2, Decl(foo3.ts, 0, 0)) 9 >x : Symbol(x, Decl(foo2.ts, 2, 10)) 19 === tests/cases/conformance/externalModules/foo2.ts === 21 >foo1 : Symbol(foo1, Decl(foo2.ts, 0, 0)) 25 >x : Symbol(x, Decl(foo2.ts, 2, 10)) 26 >foo1 : Symbol(foo1, Decl(foo2.ts, 0, 0))
|
D | callSignaturesWithOptionalParameters2.js | 10 function foo2(x: number); 11 function foo2(x: number, y?: number); 12 function foo2(x: number, y?: number) { } function 14 foo2(1); 15 foo2(1, 2); 21 foo2(x: number); 22 foo2(x: number, y?: number); 23 foo2(x: number, y?: number) { } method in C 30 c.foo2(1); 31 c.foo2(1, 2); [all …]
|
D | unionSubtypeIfEveryConstituentTypeIsSubtype.symbols | 22 foo2: e | number; // ok 23 >foo2 : Symbol(I.foo2, Decl(unionSubtypeIfEveryConstituentTypeIsSubtype.ts, 8, 25)) 36 foo2: e | number; // ok e and number both subtype of number 37 >foo2 : Symbol(I2.foo2, Decl(unionSubtypeIfEveryConstituentTypeIsSubtype.ts, 14, 25)) 50 foo2: e | number; // error e and number both not subtype of string 51 >foo2 : Symbol(I3.foo2, Decl(unionSubtypeIfEveryConstituentTypeIsSubtype.ts, 20, 25)) 65 foo2: e | number; 66 >foo2 : Symbol(I4.foo2, Decl(unionSubtypeIfEveryConstituentTypeIsSubtype.ts, 27, 25)) 81 foo2: e | number; 82 >foo2 : Symbol(I5.foo2, Decl(unionSubtypeIfEveryConstituentTypeIsSubtype.ts, 34, 25)) [all …]
|
D | functionConstraintSatisfaction2.symbols | 22 function foo2<T extends (x: string) => string>(x: T): T { return x; } 23 >foo2 : Symbol(foo2, Decl(functionConstraintSatisfaction2.ts, 6, 18)) 58 var r = foo2(new Function()); 60 >foo2 : Symbol(foo2, Decl(functionConstraintSatisfaction2.ts, 6, 18)) 63 var r2 = foo2((x: string[]) => x); 65 >foo2 : Symbol(foo2, Decl(functionConstraintSatisfaction2.ts, 6, 18)) 69 var r6 = foo2(C); 71 >foo2 : Symbol(foo2, Decl(functionConstraintSatisfaction2.ts, 6, 18)) 74 var r7 = foo2(b); 76 >foo2 : Symbol(foo2, Decl(functionConstraintSatisfaction2.ts, 6, 18)) [all …]
|
D | unionSubtypeIfEveryConstituentTypeIsSubtype.js | 11 foo2: e | number; // ok 17 foo2: e | number; // ok e and number both subtype of number 23 foo2: e | number; // error e and number both not subtype of string 30 foo2: e | number; 37 foo2: e | number; 44 foo2: e | number; 51 foo2: e | number; 58 foo2: e | number; 65 foo2: e | number; 72 foo2: e | number; [all …]
|
D | computedPropertiesInDestructuring1_ES6.js | 9 let foo2 = () => "bar"; function 10 let {[foo2()]: bar3} = {bar: "bar"}; 13 let [{[foo2()]: bar5}] = [{bar: "bar"}]; 17 function f3({[foo2()]: x}: { bar: number }) {} 19 function f5([{[foo2()]: x}]: [{ bar: number }]) {} 30 ({[foo2()]: bar3} = {bar: "bar"}); 33 [{[foo2()]: bar5}] = [{bar: "bar"}]; 45 let foo2 = () => "bar"; 46 let { [foo2()]: bar3 } = { bar: "bar" }; 48 let [{ [foo2()]: bar5 }] = [{ bar: "bar" }]; [all …]
|
D | computedPropertiesInDestructuring1_ES6.types | 28 let foo2 = () => "bar"; 29 >foo2 : () => string 33 let {[foo2()]: bar3} = {bar: "bar"}; 34 >foo2() : string 35 >foo2 : () => string 49 let [{[foo2()]: bar5}] = [{bar: "bar"}]; 50 >foo2() : string 51 >foo2 : () => string 70 function f3({[foo2()]: x}: { bar: number }) {} 71 >f3 : ({ [foo2()]: x }: { bar: number;}) => void [all …]
|
D | computedPropertiesInDestructuring1.types | 21 let foo2 = () => "bar"; 22 >foo2 : () => string 26 let {[foo2()]: bar3} = {bar: "bar"}; 27 >foo2() : string 28 >foo2 : () => string 42 let [{[foo2()]: bar5}] = [{bar: "bar"}]; 43 >foo2() : string 44 >foo2 : () => string 63 function f3({[foo2()]: x}: { bar: number }) {} 64 >f3 : ({ [foo2()]: x }: { bar: number;}) => void [all …]
|
D | importTypeLocalMissing.symbols | 14 === tests/cases/conformance/types/import/foo2.ts === 16 >Bar : Symbol(Bar, Decl(foo2.ts, 0, 0), Decl(foo2.ts, 12, 1)) 19 >I : Symbol(I, Decl(foo2.ts, 0, 15)) 22 >a : Symbol(I.a, Decl(foo2.ts, 1, 24)) 25 >b : Symbol(I.b, Decl(foo2.ts, 2, 18)) 30 >Baz : Symbol(Baz, Decl(foo2.ts, 5, 1)) 33 >J : Symbol(J, Decl(foo2.ts, 7, 22)) 36 >a : Symbol(J.a, Decl(foo2.ts, 8, 24)) 39 >b : Symbol(J.b, Decl(foo2.ts, 9, 18)) 44 >Bar : Symbol(Bar, Decl(foo2.ts, 0, 0), Decl(foo2.ts, 12, 1)) [all …]
|
D | typeParameterAsTypeParameterConstraint.js | 22 function foo2<T, U extends { length: T }>(x: T, y: U) { return y; } 23 foo2(1, ''); 24 foo2({}, { length: 2 }); 25 foo2(1, { width: 3, length: 2 }); 26 foo2(1, []); 27 foo2(1, ['']); 39 function foo2(x, y) { return y; } function 40 foo2(1, ''); 41 foo2({}, { length: 2 }); 42 foo2(1, { width: 3, length: 2 }); [all …]
|
D | exportAssignImportedIdentifier.symbols | 2 import foo2 = require('./foo2'); 3 >foo2 : Symbol(foo2, Decl(foo3.ts, 0, 0)) 5 var x = foo2(); // should be boolean 7 >foo2 : Symbol(foo2, Decl(foo3.ts, 0, 0)) 16 === tests/cases/conformance/externalModules/foo2.ts === 18 >foo1 : Symbol(foo1, Decl(foo2.ts, 0, 0)) 21 >x : Symbol(x, Decl(foo2.ts, 1, 3)) 23 >foo1 : Symbol(foo1, Decl(foo2.ts, 0, 0)) 27 >x : Symbol(x, Decl(foo2.ts, 1, 3))
|
D | typeParametersAreIdenticalToThemselves.js | 8 function foo2<T, U>(x: T); 9 function foo2<T, U>(x: T); // no error, different declaration for each T 10 function foo2<T, U>(x: T) { } 27 foo2<U>(a: T, x: U); 28 foo2<U>(a: T, x: U); // no error, different declaration for each U 29 foo2<U>(a: T, x: U) { } 45 foo2<U>(a: T, x: U); 46 foo2<U>(a: T, x: U); // no error, different declaration for each U 47 foo2<U>(a: T, x: U) { } 58 foo2<U>(a: T, x: U); [all …]
|
D | typeParameterAsTypeParameterConstraint.types | 59 function foo2<T, U extends { length: T }>(x: T, y: U) { return y; } 60 >foo2 : <T, U extends { length: T; }>(x: T, y: U) => U 66 foo2(1, ''); 67 >foo2(1, '') : "" 68 >foo2 : <T, U extends { length: T; }>(x: T, y: U) => U 72 foo2({}, { length: 2 }); 73 >foo2({}, { length: 2 }) : { length: number; } 74 >foo2 : <T, U extends { length: T; }>(x: T, y: U) => U 80 foo2(1, { width: 3, length: 2 }); 81 >foo2(1, { width: 3, length: 2 }) : { width: number; length: number; } [all …]
|
D | computedPropertiesInDestructuring1_ES6.symbols | 21 let foo2 = () => "bar"; 22 >foo2 : Symbol(foo2, Decl(computedPropertiesInDestructuring1_ES6.ts, 7, 3)) 24 let {[foo2()]: bar3} = {bar: "bar"}; 25 >foo2 : Symbol(foo2, Decl(computedPropertiesInDestructuring1_ES6.ts, 7, 3)) 34 let [{[foo2()]: bar5}] = [{bar: "bar"}]; 35 >foo2 : Symbol(foo2, Decl(computedPropertiesInDestructuring1_ES6.ts, 7, 3)) 51 function f3({[foo2()]: x}: { bar: number }) {} 53 >foo2 : Symbol(foo2, Decl(computedPropertiesInDestructuring1_ES6.ts, 7, 3)) 63 function f5([{[foo2()]: x}]: [{ bar: number }]) {} 65 >foo2 : Symbol(foo2, Decl(computedPropertiesInDestructuring1_ES6.ts, 7, 3)) [all …]
|
/third_party/typescript/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/ |
D | unionSubtypeIfEveryConstituentTypeIsSubtype.ts | 10 foo2: e | number; // ok property 16 foo2: e | number; // ok e and number both subtype of number property 22 foo2: e | number; // error e and number both not subtype of string property 29 foo2: e | number; property 36 foo2: e | number; property 43 foo2: e | number; property 50 foo2: e | number; property 57 foo2: e | number; property 64 foo2: e | number; property 71 foo2: e | number; property [all …]
|
/third_party/typescript/tests/cases/conformance/types/typeParameters/typeArgumentLists/ |
D | functionConstraintSatisfaction2.ts | 9 function foo2<T extends (x: string) => string>(x: T): T { return x; } function 23 var r = foo2(new Function()); 24 var r2 = foo2((x: string[]) => x); 25 var r6 = foo2(C); 26 var r7 = foo2(b); 27 var r8 = foo2(<U>(x: U) => x); // no error expected 28 var r11 = foo2(<U, V>(x: U, y: V) => x); 29 var r13 = foo2(C2); 30 var r14 = foo2(b2); 34 var r16 = foo2(f2); [all …]
|
/third_party/glslang/Test/ |
D | 400.vert | 13 void foo2(double a, float b) {} 14 void foo2(double a, double b){} 50 foo2(d, d); 51 foo2(d, u); 52 foo2(d, i); 53 foo2(d, f); 55 foo2(f, d); 56 foo2(f, u); 57 foo2(f, i); 58 foo2(f, f); [all …]
|