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

468 remove false warning if only default type #469

Merged
merged 8 commits into from
Jul 17, 2019

Conversation

mikemitchel
Copy link
Contributor

This removes a 'false positive' warning for type being ignored with a zero-arg getter. It now allows the default type set by can-define/map/map to exist with a zero-arg getter, and not warn.

Closes #468

Copy link
Contributor

@phillipskevin phillipskevin left a comment

Choose a reason for hiding this comment

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

@mikemitchel can you copy over your test case from can-define-mixin (https://github.com/canjs/can-define-mixin/blob/42865d6c1eab63100693545b0d40981ac61b29c9/test/define-mixin-test.js#L479)? And remove any tests here that are testing the same thing. That one covers more cases and will be easier to add test cases to in the future.

@mikemitchel mikemitchel merged commit 9a35ef9 into master Jul 17, 2019
@mikemitchel mikemitchel deleted the 468-remove-type-warning branch July 17, 2019 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove unnecessary warning
3 participants