Closed dimvar closed 5 years ago
Are there any updates here? This is still an issue.
What issue are you seeing?
What issue are you seeing?
This bug is still referenced in the Chromium codebase, as the reason we have to declare our typedefs in the global scope, see examples here.
I'll double check next week if the problem occurs within the context of the Chromium codebase if those typedefs our moved to the inner scope, and get back to you. Thanks.
FYI https://crbug.com/986481 filed to cleanup our codebase from the workarounds we introduced as a result of this bug. It does indeed seems mostly fixed. I am still seeing some non-working cases but have not created a minimal repro yet.
Let's keep this issue open, until https://crbug.com/986481 has been resolved.
Sounds good. Created internal Google issue http://b/138149699 for tracking in case this is still an issue.
FYI, this bug is also referenced in Chrome's src/ui/webui/resources/js/load_time_data.js.
@SamB : This is already mentioned a few comments above at https://github.com/google/closure-compiler/issues/544#issuecomment-513424995.
@freshp86: Huh, I had assumed that that link was to a list of search results (or a file that had to work around the bug multiple times), probably because it was labeled as "examples".
Anyway, my point was really that load_time_data.js didn't seem to be within the scope of https://crbug.com/986481, but is presumably just as good a reason to keep this bug open, and maybe somebody should open a bug about it?
A bug already exists on the Chromium side, see https://crbug.com/986481.
@SamB @freshp86
I created https://github.com/google/closure-compiler/issues/3449 (dealing with the ChromePass) and https://github.com/google/closure-compiler/issues/3450 to track specific cases where local types are not working correctly.
Closing this GitHub issue because the original repro case is now fixed, and in general local types work.
See thread here: https://groups.google.com/forum/#!topic/closure-compiler-discuss/Al990_NyydY
We will fix this in the new type inference, but unlikely before then.