-
-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(fix) fall back to any type when array is of type any (#1244)
Fixes a overzealous check introduced through #1218 When checking JS, the check would infer the type of an array entry to unknown instead of any, when the type of the array was any
- Loading branch information
1 parent
e642d9e
commit b1b0484
Showing
3 changed files
with
15 additions
and
1 deletion.
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
7 changes: 7 additions & 0 deletions
7
...ge-server/test/plugins/typescript/testfiles/diagnostics/checkJs-no-strict/each-any.svelte
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,7 @@ | ||
<script> | ||
let anyType; | ||
</script> | ||
|
||
{#each anyType as anyEntry} | ||
{anyEntry.asd()} | ||
{/each} |
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