-
-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**Description:** ```ts function f90<T extends S2, K extends keyof S2>(x1: S2[keyof S2], x2: T[keyof S2], x3: S2[K]) { x1 = x2; x1 = x3; x2 = x1; x2 = x3; x3 = x1; x3 = x2; x1.length; x2.length; x3.length; } ```
- Loading branch information
1 parent
e6e4c63
commit 92191dc
Showing
8 changed files
with
77 additions
and
33 deletions.
There are no files selected for viewing
This file contains 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 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
9 changes: 9 additions & 0 deletions
9
crates/stc_ts_file_analyzer/tests/tsc/types/nonPrimitive/.1.ts
This file contains 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,9 @@ | ||
// @strict: true | ||
|
||
|
||
function l<T extends {}, P extends keyof T>(s: string, tp: T[P]): void { | ||
tp = s; | ||
} | ||
function m<T extends { a: number }, P extends keyof T>(s: string, tp: T[P]): void { | ||
tp = s; | ||
} |
This file contains 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
2 changes: 1 addition & 1 deletion
2
.../stc_ts_type_checker/tests/conformance/types/keyof/keyofAndIndexedAccess.stats.rust-debug
This file contains 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Stats { | ||
required_error: 0, | ||
matched_error: 5, | ||
extra_error: 22, | ||
extra_error: 20, | ||
panic: 0, | ||
} |
5 changes: 3 additions & 2 deletions
5
...ts/conformance/types/nonPrimitive/nonPrimitiveConstraintOfIndexAccessType.error-diff.json
This file contains 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
4 changes: 2 additions & 2 deletions
4
...s/conformance/types/nonPrimitive/nonPrimitiveConstraintOfIndexAccessType.stats.rust-debug
This file contains 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Stats { | ||
required_error: 1, | ||
matched_error: 9, | ||
required_error: 2, | ||
matched_error: 8, | ||
extra_error: 0, | ||
panic: 0, | ||
} |
This file contains 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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
Stats { | ||
required_error: 3501, | ||
matched_error: 6534, | ||
extra_error: 766, | ||
panic: 73, | ||
required_error: 3502, | ||
matched_error: 6533, | ||
extra_error: 764, | ||
} |