Circular reference misdetection
See original GitHub issueTypeScript Version: 3.4.0-dev.20190817
Search Terms:
Code
export function f<T extends HTMLOListElement | DocumentFragment>(target: T): T {
if (target instanceof HTMLOListElement) {
for (const el of target.querySelectorAll('a')) {
if (el.closest('ol') !== target) continue;
}
}
return target;
}
Expected behavior: pass
Actual behavior:
const el: any
'el' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
Related Issues:
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Remove or allow a circular reference - Microsoft Support
Find and remove a circular reference. You can also learn about the circular reference warning message and iterative calculation in Excel.
Read more >How to fix a circular reference in Excel - Spreadsheet Class
The circular reference error in Excel, is a very common error that can occur when using almost any formula. When you see the...
Read more >Relative Reachable Domain for Spacecraft with ... - AIAA ARC
The relative reachable domain formulations are analytically expressed for circular reference orbits. It is shown that the relative reachable domain is aΒ ...
Read more >Three-dimensional relative reachable domain with initial state ...
In this study, the reference orbit is assumed to be circular. ... Because satellite relative motion along circular reference orbits are more commonly...
Read more >Relative Reachable Domain for Spacecraft with Initial State ...
formulations are analytically expressed for circular reference orbits. ... misdetection situations when the overlapping between three-sigma.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Not similar to the others. Should be filed as a separated issue.
Another instance (playground; reproduces in TS 3.6.2 too):
Or is this #33191? Or are these two issues the same?