Type Checking Array Contents with Closure-Compiler
问题 In Google Closure, if an Array of a specific @type {Array.<type>} is initialized, can I be sure that Google Closure will confirm the Array contents? Here is a small test case. It appears to me that an {Array.<string>} is sneaking past an {Array.<number>} check, although a {string} is correctly blocked by the same check. I am a little new to GC, is this an error on my part? I've pasted this to the Google Closure Service, and I'm showing only one of two expected errors (Sept 12 2013). I've