/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/typeRelationships/typeAndMemberIdentity/ |
D | typeParametersAreIdenticalToThemselves.ts | 7 function foo2<T, U>(x: T); function 26 foo2<U>(a: T, x: U); method in C 44 foo2<U>(a: T, x: U); method in C2 57 foo2<U>(a: T, x: U); method 58 foo2<U>(a: T, x: U); // no error, different declaration for each U method 71 foo2<U>(a: T, x: U); method 72 foo2<U>(a: T, x: U); // no error, different declaration for each U method
|
/third_party/typescript/tests/cases/compiler/ |
D | computedPropertiesInDestructuring1_ES6.ts | 9 let foo2 = () => "bar"; variable 10 let {[foo2()]: bar3} = {bar: "bar"}; variable 13 let [{[foo2()]: bar5}] = [{bar: "bar"}]; variable
|
D | computedPropertiesInDestructuring1.ts | 7 let foo2 = () => "bar"; variable 8 let {[foo2()]: bar3} = {bar: "bar"}; variable 11 let [{[foo2()]: bar5}] = [{bar: "bar"}]; variable
|
D | computedPropertiesInDestructuring2_ES6.ts | 3 let foo2 = () => "bar"; variable 4 let {[foo2()]: bar3} = {}; variable
|
D | computedPropertiesInDestructuring2.ts | 1 let foo2 = () => "bar"; variable 2 let {[foo2()]: bar3} = {}; variable
|
D | functionOverloads45.ts | 11 function foo2(bar: { a:number }[]): Cat; function 13 function foo2([x]: { a:number | string }[]): Cat | Dog { function
|
D | overloadResolutionTest1.ts | 13 function foo2(bar:{a:number;}):string; function 15 function foo2(bar:{a:any;}):any{ return bar }; function
|
D | functionOverloads44.ts | 11 function foo2(bar: { a:number }[]): Cat; function 13 function foo2([x]: { a:number | string }[]): Cat { function
|
D | collisionCodeGenModuleWithModuleReopening.ts | 12 var foo2 = new m1.c1(); variable 29 var foo2 = new m2.m2(); variable
|
/third_party/typescript/tests/baselines/reference/ |
D | collisionCodeGenModuleWithModuleReopening.js | 13 var foo2 = new m1.c1(); variable 30 var foo2 = new m2.m2(); variable 53 var foo2 = new m1.c1(); variable 78 var foo2 = new m2.m2(); variable
|
D | yieldExpressionInnerCommentEmit.js | 2 function * foo2() { generator 12 function* foo2() { generator
|
D | parserIndexSignature8.js | 3 var foo2: { [index: RegExp]; }; // expect an error here variable 8 var foo2; // expect an error here variable
|
D | callSignatureFunctionOverload.js | 9 var foo2: { variable 19 var foo2; variable
|
D | callSignaturesWithOptionalParameters2.js | 12 function foo2(x: number, y?: number) { } function 23 foo2(x: number, y?: number) { } method in C 74 C.prototype.foo2 = function (x, y) { }; method in C
|
D | nullishCoalescingOperator7.js | 7 const foo2 = a ?? 'foo' ? 1 : 2; constant 18 var foo2 = (a !== null && a !== void 0 ? a : 'foo') ? 1 : 2; variable
|
D | optionalProperties01.js | 9 const foo2 = { required1: "hello", optional: "bar" } as Foo; variable 14 var foo2 = { required1: "hello", optional: "bar" }; variable
|
D | propertySignatures.js | 6 var foo2: { a; }; variable 27 var foo2; variable
|
D | propertyAssignment.js | 5 var foo2: { [index]; } // should be an error, used to be indexer, now it is a computed property variable 20 var foo2; // should be an error, used to be indexer, now it is a computed property variable
|
D | collisionExportsRequireAndAlias.js | 16 export function foo2() { function 47 function foo2() { function
|
/third_party/typescript/tests/cases/conformance/types/objectTypeLiteral/callSignatures/ |
D | callSignaturesWithAccessibilityModifiersOnParameters.ts | 9 function foo2(private x: string, public y: number) { } function 17 foo2(public x: number, private y: string) { } method in C 31 foo2(private x: number, public y: string); variable
|
D | callSignaturesWithDuplicateParameters.ts | 9 function foo2(x: string, x: number) { } function 17 foo2(x: number, x: string) { } method in C 31 foo2(x: number, x: string); variable
|
D | callSignaturesWithOptionalParameters2.ts | 9 function foo2(x: number); function 20 foo2(x: number); method in C
|
/third_party/typescript/tests/cases/fourslash/ |
D | findAllRefsImportNamed.ts | 12 const [ foo0Def, foo0, foo1, foo2Def, foo2, foo3 ] = test.ranges(); constant 13 const fooGroup = { definition: "function foo(a: number, b: number): void", ranges: [foo0, foo2] }; constant
|
D | findAllRefsImportDefault.ts | 14 const [ foo0Def, foo0, foo1, foo2Def, foo2, bar0Def, bar0, bar1 ] = test.ranges(); constant 15 const fooGroup = { definition: "function foo(a: number, b: number): number", ranges: [foo0, foo2] }; constant
|