Skip to content

Commit 9e73730

Browse files
Accepted baselines.
1 parent eedc389 commit 9e73730

5 files changed

+12
-2
lines changed

tests/baselines/reference/api/tsserverlibrary.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2136,6 +2136,7 @@ declare namespace ts {
21362136
OmitParameterModifiers = 8192,
21372137
UseAliasDefinedOutsideCurrentScope = 16384,
21382138
UseSingleQuotesForStringLiteralType = 268435456,
2139+
PreserveVacuousIntersections = 536870912,
21392140
AllowThisInObjectLiteral = 32768,
21402141
AllowQualifedNameInPlaceOfIdentifier = 65536,
21412142
AllowAnonymousIdentifier = 131072,
@@ -2164,6 +2165,7 @@ declare namespace ts {
21642165
OmitParameterModifiers = 8192,
21652166
UseAliasDefinedOutsideCurrentScope = 16384,
21662167
UseSingleQuotesForStringLiteralType = 268435456,
2168+
PreserveVacuousIntersections = 536870912,
21672169
AllowUniqueESSymbolType = 1048576,
21682170
AddUndefined = 131072,
21692171
WriteArrowStyleSignature = 262144,
@@ -2172,7 +2174,7 @@ declare namespace ts {
21722174
InFirstTypeArgument = 4194304,
21732175
InTypeAlias = 8388608,
21742176
/** @deprecated */ WriteOwnNameForAnyLike = 0,
2175-
NodeBuilderFlagsMask = 277904747
2177+
NodeBuilderFlagsMask = 814775659
21762178
}
21772179
export enum SymbolFormatFlags {
21782180
None = 0,

tests/baselines/reference/api/typescript.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2136,6 +2136,7 @@ declare namespace ts {
21362136
OmitParameterModifiers = 8192,
21372137
UseAliasDefinedOutsideCurrentScope = 16384,
21382138
UseSingleQuotesForStringLiteralType = 268435456,
2139+
PreserveVacuousIntersections = 536870912,
21392140
AllowThisInObjectLiteral = 32768,
21402141
AllowQualifedNameInPlaceOfIdentifier = 65536,
21412142
AllowAnonymousIdentifier = 131072,
@@ -2164,6 +2165,7 @@ declare namespace ts {
21642165
OmitParameterModifiers = 8192,
21652166
UseAliasDefinedOutsideCurrentScope = 16384,
21662167
UseSingleQuotesForStringLiteralType = 268435456,
2168+
PreserveVacuousIntersections = 536870912,
21672169
AllowUniqueESSymbolType = 1048576,
21682170
AddUndefined = 131072,
21692171
WriteArrowStyleSignature = 262144,
@@ -2172,7 +2174,7 @@ declare namespace ts {
21722174
InFirstTypeArgument = 4194304,
21732175
InTypeAlias = 8388608,
21742176
/** @deprecated */ WriteOwnNameForAnyLike = 0,
2175-
NodeBuilderFlagsMask = 277904747
2177+
NodeBuilderFlagsMask = 814775659
21762178
}
21772179
export enum SymbolFormatFlags {
21782180
None = 0,

tests/baselines/reference/intersectionReduction.errors.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
tests/cases/conformance/types/intersection/intersectionReduction.ts(38,4): error TS2339: Property 'kind' does not exist on type 'never'.
2+
The type 'never' was reduced from the intersection 'A & B'. Each type of the intersection has properties that conflict, so values of that type can never exist.
23
tests/cases/conformance/types/intersection/intersectionReduction.ts(80,1): error TS2322: Type 'any' is not assignable to type 'never'.
34
tests/cases/conformance/types/intersection/intersectionReduction.ts(81,1): error TS2322: Type 'any' is not assignable to type 'never'.
45

@@ -44,6 +45,7 @@ tests/cases/conformance/types/intersection/intersectionReduction.ts(81,1): error
4445
ab.kind; // Error
4546
~~~~
4647
!!! error TS2339: Property 'kind' does not exist on type 'never'.
48+
!!! error TS2339: The type 'never' was reduced from the intersection 'A & B'. Each type of that intersection has properties that conflict, so values of that type can never exist.
4749

4850
declare let x: A | (B & C); // A
4951
let a: A = x;

tests/baselines/reference/intersectionReductionStrict.errors.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
tests/cases/conformance/types/intersection/intersectionReductionStrict.ts(38,4): error TS2339: Property 'kind' does not exist on type 'never'.
2+
The type 'never' was reduced from the intersection 'A & B'. Each type of that intersection has properties that conflict, so values of that type can never exist.
23
tests/cases/conformance/types/intersection/intersectionReductionStrict.ts(69,1): error TS2322: Type 'any' is not assignable to type 'never'.
34
tests/cases/conformance/types/intersection/intersectionReductionStrict.ts(70,1): error TS2322: Type 'any' is not assignable to type 'never'.
45

@@ -44,6 +45,7 @@ tests/cases/conformance/types/intersection/intersectionReductionStrict.ts(70,1):
4445
ab.kind; // Error
4546
~~~~
4647
!!! error TS2339: Property 'kind' does not exist on type 'never'.
48+
!!! error TS2339: The type 'never' was reduced from the intersection 'A & B'. Each type of that intersection has properties that conflict, so values of that type can never exist.
4749

4850
declare let x: A | (B & C); // A
4951
let a: A = x;

tests/baselines/reference/typeGuardsWithInstanceOf.errors.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
tests/cases/conformance/expressions/typeGuards/typeGuardsWithInstanceOf.ts(7,20): error TS2339: Property 'global' does not exist on type 'never'.
2+
The type 'never' was reduced from the intersection 'I & RegExp'. Each type of that intersection has properties that conflict, so values of that type can never exist.
23

34

45
==== tests/cases/conformance/expressions/typeGuards/typeGuardsWithInstanceOf.ts (1 errors) ====
@@ -11,4 +12,5 @@ tests/cases/conformance/expressions/typeGuards/typeGuardsWithInstanceOf.ts(7,20)
1112
} else if (!result.global) {
1213
~~~~~~
1314
!!! error TS2339: Property 'global' does not exist on type 'never'.
15+
!!! error TS2339: The type 'never' was reduced from the intersection 'I & RegExp'. Each type of that intersection has properties that conflict, so values of that type can never exist.
1416
}

0 commit comments

Comments
 (0)