HoriSun / closure-compiler

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

enum container objects should be templatized #1214

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently, enum containers are treated as equivalent to "Object", but 
enum.<Foo> should be treat as Object.<Foo>:

/** @enum {string} */
var x = {
};

/** @type {Object.<number>} */
var z = x;  // An warning should be generated here.

Original issue reported on code.google.com by concavel...@gmail.com on 28 Jan 2014 at 6:21

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