HoriSun / closure-compiler

Automatically exported from code.google.com/p/closure-compiler
0 stars 0 forks source link

Issue a warning when creating synthetic externs #1196

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Creating externs declarations for externs can be confusing.  Issuing a warning 
when we do so, would be useful for tracking these kinds of issues down.

http://stackoverflow.com/questions/21057870/closure-compiler-syntheticvarsdeclar
-warning-redeclared-variable

Original issue reported on code.google.com by concavel...@gmail.com on 15 Jan 2014 at 5:00

GoogleCodeExporter commented 9 years ago
i think this issue is a misnomer. synthetic externs are just an implementation 
detail of how we turn off the missing var check. the stackoverflow post points 
to a deeper problem, where that implementation detail isn't working properly.

Original comment by Nicholas.J.Santos on 16 Jan 2014 at 10:40

GoogleCodeExporter commented 9 years ago
For vars in externs I suppose we could simply add a suppress duplicate

Original comment by concavel...@gmail.com on 17 Jan 2014 at 5:54

GoogleCodeExporter commented 9 years ago
sgtm

Original comment by Nicholas.J.Santos on 17 Jan 2014 at 11:58

GoogleCodeExporter commented 9 years ago
Issue tracking has been migrated to github. Please make any further comments on 
this issue through https://github.com/google/closure-compiler/issues

Original comment by blic...@google.com on 1 May 2014 at 6:31

GoogleCodeExporter commented 9 years ago

Original comment by blic...@google.com on 1 May 2014 at 6:34