Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes warning about hidden being undefined #129

Merged
merged 1 commit into from
Oct 2, 2018

Conversation

zamith
Copy link
Contributor

@zamith zamith commented Sep 12, 2018

Why:

  • When compiling a view that used this module it would throw a warning
    saying that hidden/0 was undefined

This change addresses the need by:

  • Tricking the compiler to now throw the warning since we know that it
    will be defined as we're only calling it conditionally on the fact that
    it has been overridden.

Copy link
Member

@doomspork doomspork left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me but I'd like to wait for other folks to chime in. Also, can we get the build passing @zamith?

Why:

* When compiling a view that used this module it would throw a warning
  saying that `hidden/0` was undefined

This change addresses the need by:

* Tricking the compiler to now throw the warning since we know that it
  will be defined as we're only calling it conditionally on the fact that
  it has been overridden.
@zamith
Copy link
Contributor Author

zamith commented Oct 2, 2018

@doomspork Rebased with master, which should fix the errors. Can we merge it?

@jeregrine jeregrine merged commit c9a6f76 into beam-community:master Oct 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants