Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

handle enums that are explicitly provided and within a provided namespace. #69

Closed
rkirov opened this issue Sep 1, 2015 · 0 comments · Fixed by #73
Closed

handle enums that are explicitly provided and within a provided namespace. #69

rkirov opened this issue Sep 1, 2015 · 0 comments · Fixed by #73

Comments

@rkirov
Copy link
Contributor

rkirov commented Sep 1, 2015

The following pattern while highly suspicious is valid Closure:

goog.provide('goog.A');
goog.provide('goog.A.B');

/** @constructor */
goog.A = function() {}

/** @enum */
goog.A.B = {};

The current code will create a var for B in goog.A, and also declare namespace goog.A.B which is an error.

see: https://github.com/google/closure-library/blob/master/closure/goog/fx/transition.js

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant