Home
last modified time | relevance | path

Searched refs:inferred (Results 1 – 25 of 204) sorted by relevance

123456789

/third_party/typescript/tests/baselines/reference/
DswitchCaseNarrowsMatchingClausesEvenWhenNonMatchingClausesExist.types4 >(str: string) => { switch (str) { case 'abc': { // inferred type as `abc` re…
13 // inferred type as `abc`
25 >(str: string, someOtherStr: string) => { switch (str) { case 'abc': { // inferred t…
35 // inferred type should be `abc`
54 … case 'abc': { // inferred type should be `abc` return str; } case someN…
64 // inferred type should be `abc`
71 // inferred type should be `number`
DpropagationOfPromiseInitialization.types15 >foo.then((x) => { // x is inferred to be a number return "asdf";}).then((x) => { // x is
16 >foo.then((x) => { // x is inferred to be a number return "asdf";}).then : <TResult>(successC…
17 >foo.then((x) => { // x is inferred to be a number return "asdf";}) : IPromise<string>
21 >(x) => { // x is inferred to be a number return "asdf";} : (x: number) => string
24 // x is inferred to be a number
30 >(x) => { // x is inferred to be string x.length; return 123;} : (x: string) => number
33 // x is inferred to be string
DdeclarationFiles.errors.txt2 tests/cases/conformance/types/thisType/declarationFiles.ts(30,5): error TS2527: The inferred type o…
3 tests/cases/conformance/types/thisType/declarationFiles.ts(32,5): error TS2527: The inferred type o…
4 tests/cases/conformance/types/thisType/declarationFiles.ts(34,5): error TS2527: The inferred type o…
5 tests/cases/conformance/types/thisType/declarationFiles.ts(40,5): error TS2527: The inferred type o…
42 !!! error TS2527: The inferred type of 'x1' references an inaccessible 'this' type. A type annotati…
46 !!! error TS2527: The inferred type of 'x3' references an inaccessible 'this' type. A type annotati…
50 !!! error TS2527: The inferred type of 'f1' references an inaccessible 'this' type. A type annotati…
58 !!! error TS2527: The inferred type of 'f3' references an inaccessible 'this' type. A type annotati…
DtargetTypeTest1.errors.txt16 // Because Point is a constructor function, this is inferred
17 // to be Point and return type is inferred to be void
35 // this inferred as Point because of obj.prop assignment
36 // dx, dy, and return type inferred using target typing
43 // Object literal type inferred using target typing
44 // this in function add inferred to be type of object literal (i.e. Point)
45 // dx, dy, and return type of add inferred using target typing
DdeclarationEmitPrivatePromiseLikeInterface.errors.txt1 tests/cases/compiler/Api.ts(6,5): error TS7056: The inferred type of this node exceeds the maximum …
2 tests/cases/compiler/Api.ts(7,5): error TS7056: The inferred type of this node exceeds the maximum …
3 tests/cases/compiler/Api.ts(8,5): error TS7056: The inferred type of this node exceeds the maximum …
35 !!! error TS7056: The inferred type of this node exceeds the maximum length the compiler will seria…
38 !!! error TS7056: The inferred type of this node exceeds the maximum length the compiler will seria…
41 !!! error TS7056: The inferred type of this node exceeds the maximum length the compiler will seria…
DswitchCaseNarrowsMatchingClausesEvenWhenNonMatchingClausesExist.symbols10 // inferred type as `abc`
28 // inferred type should be `abc`
53 // inferred type should be `abc`
60 // inferred type should be `number`
DdeclarationEmitExportAssignedNamespaceNoTripleSlashTypesReference.symbols55 === tests/cases/compiler/src/inferred-comp-export.ts ===
57 >getComp : Symbol(getComp, Decl(inferred-comp-export.ts, 0, 8))
62 >obj : Symbol(obj, Decl(inferred-comp-export.ts, 4, 12))
65 >comp : Symbol(comp, Decl(inferred-comp-export.ts, 4, 20))
66 >getComp : Symbol(getComp, Decl(inferred-comp-export.ts, 0, 8))
DreadonlyPropertySubtypeRelationDirected.errors.txt18 …mes first in the conditional check, the return type of `doSomething` is inferred as `a` is readonl…
26 …// the inferred (displayed?) type of `a` also depends on the order of the condition above. When `o…
41 …mes first in the conditional check, the return type of `doSomething` is inferred as not readonly b…
49 …// the inferred (displayed?) type of `a` also depends on the order of the condition above. When `o…
65 …mes first in the conditional check, the return type of `doSomething` is inferred as `a` is readonl…
73 …// the inferred (displayed?) type of `a` also depends on the order of the condition above. When `o…
89 …mes first in the conditional check, the return type of `doSomething` is inferred as not readonly b…
97 …// the inferred (displayed?) type of `a` also depends on the order of the condition above. When `o…
DtargetTypeTest1.types26 // Because Point is a constructor function, this is inferred
27 // to be Point and return type is inferred to be void
80 // this inferred as Point because of obj.prop assignment
81 // dx, dy, and return type inferred using target typing
113 // Object literal type inferred using target typing
114 // this in function add inferred to be type of object literal (i.e. Point)
115 // dx, dy, and return type of add inferred using target typing
DreadonlyPropertySubtypeRelationDirected.types22 …mes first in the conditional check, the return type of `doSomething` is inferred as `a` is readonl…
39 …// the inferred (displayed?) type of `a` also depends on the order of the condition above. When `o…
72 …mes first in the conditional check, the return type of `doSomething` is inferred as not readonly b…
89 …// the inferred (displayed?) type of `a` also depends on the order of the condition above. When `o…
123 …mes first in the conditional check, the return type of `doSomething` is inferred as `a` is readonl…
140 …// the inferred (displayed?) type of `a` also depends on the order of the condition above. When `o…
174 …mes first in the conditional check, the return type of `doSomething` is inferred as not readonly b…
191 …// the inferred (displayed?) type of `a` also depends on the order of the condition above. When `o…
DtargetTypeTest1.symbols28 // Because Point is a constructor function, this is inferred
29 // to be Point and return type is inferred to be void
66 // this inferred as Point because of obj.prop assignment
67 // dx, dy, and return type inferred using target typing
87 // Object literal type inferred using target typing
88 // this in function add inferred to be type of object literal (i.e. Point)
89 // dx, dy, and return type of add inferred using target typing
DreadonlyPropertySubtypeRelationDirected.symbols18 …mes first in the conditional check, the return type of `doSomething` is inferred as `a` is readonl…
31 …// the inferred (displayed?) type of `a` also depends on the order of the condition above. When `o…
58 …mes first in the conditional check, the return type of `doSomething` is inferred as not readonly b…
71 …// the inferred (displayed?) type of `a` also depends on the order of the condition above. When `o…
99 …mes first in the conditional check, the return type of `doSomething` is inferred as `a` is readonl…
112 …// the inferred (displayed?) type of `a` also depends on the order of the condition above. When `o…
140 …mes first in the conditional check, the return type of `doSomething` is inferred as not readonly b…
153 …// the inferred (displayed?) type of `a` also depends on the order of the condition above. When `o…
DpropagationOfPromiseInitialization.symbols25 >foo.then((x) => { // x is inferred to be a number return "asdf";}).then : Symbol(IPromise.th…
31 // x is inferred to be a number
37 // x is inferred to be string
DdeclarationEmitExpressionWithNonlocalPrivateUniqueSymbol.errors.txt1 tests/cases/compiler/b.ts(2,14): error TS2527: The inferred type of 'A1' references an inaccessible…
11 !!! error TS2527: The inferred type of 'A1' references an inaccessible 'unique symbol' type. A type…
DinferenceShouldFailOnEvolvingArrays.errors.txt19 z = logLength(42); // no error; T is inferred as `any`
31 zz.push(logLength(42)); // no error; T is inferred as `any`
34 zz = logFirstLength([42]); // no error; T is inferred as `any[]`
DclassAttributeInferenceTemplate.types16 this.property = `foo`; // Correctly inferred as `string`
31 const localProperty = `foo-${variable}`; // Correctly inferred as `string`
DclassAttributeInferenceTemplateJS.types16 this.property = `foo`; // Correctly inferred as `string`
31 const localProperty = `foo-${variable}`; // Correctly inferred as `string`
DbigintWithoutLib.symbols18 bigintVal = bigintVal.valueOf(); // should error - bigintVal inferred as {}
24 let stringVal: string = bigintVal.toString(); // should not error - bigintVal inferred as {}
30 stringVal = bigintVal.toString(2); // should error - bigintVal inferred as {}
36 stringVal = bigintVal.toLocaleString(); // should not error - bigintVal inferred as {}
42 stringVal = bigintVal.toLocaleString('de-DE'); // should not error - bigintVal inferred as {}
48 …tVal.toLocaleString('de-DE', { style: 'currency' }); // should not error - bigintVal inferred as {}
55 …ing('de-DE', { style: 'currency', currency: 'EUR' }) // should not error - bigintVal inferred as {}
DcontextualTypeOnYield1.types8 >function*() { yield (num) => console.log(num); // `num` should be inferred to have type `number`.…
10 yield (num) => console.log(num); // `num` should be inferred to have type `number`.
DhugeDeclarationOutputGetsTruncatedWithError.errors.txt1 …hugeDeclarationOutputGetsTruncatedWithError.ts(5,14): error TS7056: The inferred type of this node…
11 !!! error TS7056: The inferred type of this node exceeds the maximum length the compiler will seria…
DbigintWithoutLib.types43 bigintVal = bigintVal.valueOf(); // should error - bigintVal inferred as {}
51 let stringVal: string = bigintVal.toString(); // should not error - bigintVal inferred as {}
58 stringVal = bigintVal.toString(2); // should error - bigintVal inferred as {}
67 stringVal = bigintVal.toLocaleString(); // should not error - bigintVal inferred as {}
75 stringVal = bigintVal.toLocaleString('de-DE'); // should not error - bigintVal inferred as {}
84 …tVal.toLocaleString('de-DE', { style: 'currency' }); // should not error - bigintVal inferred as {}
96 …ing('de-DE', { style: 'currency', currency: 'EUR' }) // should not error - bigintVal inferred as {}
DconstructorOverloads7.errors.txt17 // Because Point is a constructor function, this is inferred
18 // to be Point and return type is inferred to be void
DarrayFakeFlatNoCrashInferenceDeclarations.errors.txt1 …/arrayFakeFlatNoCrashInferenceDeclarations.ts(13,10): error TS5088: The inferred type of 'foo' ref…
19 !!! error TS5088: The inferred type of 'foo' references a type with a cyclic structure which cannot…
DinferenceShouldFailOnEvolvingArrays.types28 z = logLength(42); // no error; T is inferred as `any`
63 zz.push(logLength(42)); // no error; T is inferred as `any`
72 zz = logFirstLength([42]); // no error; T is inferred as `any[]`
/third_party/typescript/tests/baselines/reference/tsserver/watchEnvironment/
Dwatching-files-with-network-style-paths.js127 …yprojects/project/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root
128 …yprojects/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root
305 …yprojects/project/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root
306 …yprojects/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root

123456789