-
Notifications
You must be signed in to change notification settings - Fork 730
Update submodule for new cherry-picks #1996
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Submodule TypeScript
updated
44 files
45 changes: 0 additions & 45 deletions
45
testdata/baselines/reference/submodule/compiler/arrayAssignmentTest1.errors.txt.diff
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
...ule/compiler/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.errors.txt.diff
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
testdata/baselines/reference/submodule/compiler/variancePropagation.errors.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| variancePropagation.ts(13,7): error TS2322: Type 'DerivedTable<{ base: Base; new: New; }>' is not assignable to type 'DerivedTable<{ base: Base; new: New & Base; }>'. | ||
| Type '{ base: Base; new: New; }' is not assignable to type '{ base: Base; new: New & Base; }'. | ||
| Types of property 'new' are incompatible. | ||
| Type 'New' is not assignable to type 'New & Base'. | ||
| Property 'baseProp' is missing in type 'New' but required in type 'Base'. | ||
|
|
||
|
|
||
| ==== variancePropagation.ts (1 errors) ==== | ||
| // https://github.com/microsoft/TypeScript/issues/62606 | ||
|
|
||
| interface DerivedTable<S extends { base: any; new: any }> { | ||
| // Error disappears when these property declarations are reversed | ||
| schema: S["base"] & S["new"] | ||
| readonlySchema: Readonly<S["base"] & S["new"]> | ||
| } | ||
|
|
||
| interface Base { baseProp: number; } | ||
| interface New { newProp: boolean; } | ||
|
|
||
| declare const source: DerivedTable<{ base: Base, new: New }> | ||
| const destination: DerivedTable<{ base: Base; new: New & Base }> = source; // Error | ||
| ~~~~~~~~~~~ | ||
| !!! error TS2322: Type 'DerivedTable<{ base: Base; new: New; }>' is not assignable to type 'DerivedTable<{ base: Base; new: New & Base; }>'. | ||
| !!! error TS2322: Type '{ base: Base; new: New; }' is not assignable to type '{ base: Base; new: New & Base; }'. | ||
| !!! error TS2322: Types of property 'new' are incompatible. | ||
| !!! error TS2322: Type 'New' is not assignable to type 'New & Base'. | ||
| !!! error TS2322: Property 'baseProp' is missing in type 'New' but required in type 'Base'. | ||
| !!! related TS2728 variancePropagation.ts:9:18: 'baseProp' is declared here. | ||
|
|
33 changes: 33 additions & 0 deletions
33
testdata/baselines/reference/submodule/compiler/variancePropagation.errors.txt.diff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| --- old.variancePropagation.errors.txt | ||
| +++ new.variancePropagation.errors.txt | ||
| @@= skipped -0, +0 lines =@@ | ||
| -<no content> | ||
| +variancePropagation.ts(13,7): error TS2322: Type 'DerivedTable<{ base: Base; new: New; }>' is not assignable to type 'DerivedTable<{ base: Base; new: New & Base; }>'. | ||
| + Type '{ base: Base; new: New; }' is not assignable to type '{ base: Base; new: New & Base; }'. | ||
| + Types of property 'new' are incompatible. | ||
| + Type 'New' is not assignable to type 'New & Base'. | ||
| + Property 'baseProp' is missing in type 'New' but required in type 'Base'. | ||
| + | ||
| + | ||
| +==== variancePropagation.ts (1 errors) ==== | ||
| + // https://github.com/microsoft/TypeScript/issues/62606 | ||
| + | ||
| + interface DerivedTable<S extends { base: any; new: any }> { | ||
| + // Error disappears when these property declarations are reversed | ||
| + schema: S["base"] & S["new"] | ||
| + readonlySchema: Readonly<S["base"] & S["new"]> | ||
| + } | ||
| + | ||
| + interface Base { baseProp: number; } | ||
| + interface New { newProp: boolean; } | ||
| + | ||
| + declare const source: DerivedTable<{ base: Base, new: New }> | ||
| + const destination: DerivedTable<{ base: Base; new: New & Base }> = source; // Error | ||
| + ~~~~~~~~~~~ | ||
| +!!! error TS2322: Type 'DerivedTable<{ base: Base; new: New; }>' is not assignable to type 'DerivedTable<{ base: Base; new: New & Base; }>'. | ||
| +!!! error TS2322: Type '{ base: Base; new: New; }' is not assignable to type '{ base: Base; new: New & Base; }'. | ||
| +!!! error TS2322: Types of property 'new' are incompatible. | ||
| +!!! error TS2322: Type 'New' is not assignable to type 'New & Base'. | ||
| +!!! error TS2322: Property 'baseProp' is missing in type 'New' but required in type 'Base'. | ||
| +!!! related TS2728 variancePropagation.ts:9:18: 'baseProp' is declared here. | ||
| + | ||
50 changes: 50 additions & 0 deletions
50
testdata/baselines/reference/submodule/compiler/variancePropagation.symbols
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| //// [tests/cases/compiler/variancePropagation.ts] //// | ||
|
|
||
| === variancePropagation.ts === | ||
| // https://github.com/microsoft/TypeScript/issues/62606 | ||
|
|
||
| interface DerivedTable<S extends { base: any; new: any }> { | ||
| >DerivedTable : Symbol(DerivedTable, Decl(variancePropagation.ts, 0, 0)) | ||
| >S : Symbol(S, Decl(variancePropagation.ts, 2, 23)) | ||
| >base : Symbol(base, Decl(variancePropagation.ts, 2, 34)) | ||
| >new : Symbol(new, Decl(variancePropagation.ts, 2, 45)) | ||
|
|
||
| // Error disappears when these property declarations are reversed | ||
| schema: S["base"] & S["new"] | ||
| >schema : Symbol(DerivedTable.schema, Decl(variancePropagation.ts, 2, 59)) | ||
| >S : Symbol(S, Decl(variancePropagation.ts, 2, 23)) | ||
| >S : Symbol(S, Decl(variancePropagation.ts, 2, 23)) | ||
|
|
||
| readonlySchema: Readonly<S["base"] & S["new"]> | ||
| >readonlySchema : Symbol(DerivedTable.readonlySchema, Decl(variancePropagation.ts, 4, 32)) | ||
| >Readonly : Symbol(Readonly, Decl(lib.es5.d.ts, --, --)) | ||
| >S : Symbol(S, Decl(variancePropagation.ts, 2, 23)) | ||
| >S : Symbol(S, Decl(variancePropagation.ts, 2, 23)) | ||
| } | ||
|
|
||
| interface Base { baseProp: number; } | ||
| >Base : Symbol(Base, Decl(variancePropagation.ts, 6, 1)) | ||
| >baseProp : Symbol(Base.baseProp, Decl(variancePropagation.ts, 8, 16)) | ||
|
|
||
| interface New { newProp: boolean; } | ||
| >New : Symbol(New, Decl(variancePropagation.ts, 8, 36)) | ||
| >newProp : Symbol(New.newProp, Decl(variancePropagation.ts, 9, 16)) | ||
|
|
||
| declare const source: DerivedTable<{ base: Base, new: New }> | ||
| >source : Symbol(source, Decl(variancePropagation.ts, 11, 13)) | ||
| >DerivedTable : Symbol(DerivedTable, Decl(variancePropagation.ts, 0, 0)) | ||
| >base : Symbol(base, Decl(variancePropagation.ts, 11, 36)) | ||
| >Base : Symbol(Base, Decl(variancePropagation.ts, 6, 1)) | ||
| >new : Symbol(new, Decl(variancePropagation.ts, 11, 48)) | ||
| >New : Symbol(New, Decl(variancePropagation.ts, 8, 36)) | ||
|
|
||
| const destination: DerivedTable<{ base: Base; new: New & Base }> = source; // Error | ||
| >destination : Symbol(destination, Decl(variancePropagation.ts, 12, 5)) | ||
| >DerivedTable : Symbol(DerivedTable, Decl(variancePropagation.ts, 0, 0)) | ||
| >base : Symbol(base, Decl(variancePropagation.ts, 12, 33)) | ||
| >Base : Symbol(Base, Decl(variancePropagation.ts, 6, 1)) | ||
| >new : Symbol(new, Decl(variancePropagation.ts, 12, 45)) | ||
| >New : Symbol(New, Decl(variancePropagation.ts, 8, 36)) | ||
| >Base : Symbol(Base, Decl(variancePropagation.ts, 6, 1)) | ||
| >source : Symbol(source, Decl(variancePropagation.ts, 11, 13)) | ||
|
|
34 changes: 34 additions & 0 deletions
34
testdata/baselines/reference/submodule/compiler/variancePropagation.types
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| //// [tests/cases/compiler/variancePropagation.ts] //// | ||
|
|
||
| === variancePropagation.ts === | ||
| // https://github.com/microsoft/TypeScript/issues/62606 | ||
|
|
||
| interface DerivedTable<S extends { base: any; new: any }> { | ||
| >base : any | ||
| >new : any | ||
|
|
||
| // Error disappears when these property declarations are reversed | ||
| schema: S["base"] & S["new"] | ||
| >schema : S["base"] & S["new"] | ||
|
|
||
| readonlySchema: Readonly<S["base"] & S["new"]> | ||
| >readonlySchema : Readonly<S["base"] & S["new"]> | ||
| } | ||
|
|
||
| interface Base { baseProp: number; } | ||
| >baseProp : number | ||
|
|
||
| interface New { newProp: boolean; } | ||
| >newProp : boolean | ||
|
|
||
| declare const source: DerivedTable<{ base: Base, new: New }> | ||
| >source : DerivedTable<{ base: Base; new: New; }> | ||
| >base : Base | ||
| >new : New | ||
|
|
||
| const destination: DerivedTable<{ base: Base; new: New & Base }> = source; // Error | ||
| >destination : DerivedTable<{ base: Base; new: New & Base; }> | ||
| >base : Base | ||
| >new : New & Base | ||
| >source : DerivedTable<{ base: Base; new: New; }> | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 0 additions & 38 deletions
38
...elines/reference/submodule/conformance/assignmentCompatWithNumericIndexer.errors.txt.diff
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This error will go away in #1916.