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

Emit each inner class once#831

Closed
teppeis wants to merge 1 commit intoangular:masterfrom
teppeis:emit-innerclass-once
Closed

Emit each inner class once#831
teppeis wants to merge 1 commit intoangular:masterfrom
teppeis:emit-innerclass-once

Conversation

@teppeis
Copy link
Contributor

@teppeis teppeis commented Jan 14, 2019

After #822, goog.module.ModuleLoader.EvaluateCodeEvent and some classes are emitted twice throwing TS2300: Duplicate identifier.
Because goog.module.ModuleLoader.EvaluateCodeEvent is emitted as an inner class of not only goog.module.ModuleLoader but also goog.module.

@rkirov
Copy link
Contributor

rkirov commented Jan 15, 2019

Looks good. Only caveat is that we like to have tests represent the situation that this is fixing, rather than the closure lib code that was triggering the error. That way the tests are more mainainable.

In order to expedite landing the fix, I fixed your tests and created a new PR - #834. I tried to preserve your ownership of the commit.

@rkirov rkirov closed this Jan 15, 2019
@teppeis teppeis deleted the emit-innerclass-once branch January 15, 2019 01:58
@teppeis
Copy link
Contributor Author

teppeis commented Jan 15, 2019

@rkirov thanks! 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants