Skip to content

fix(jsii): check that static and nonstatic members don't share a name#430

Merged
rix0rrr merged 2 commits intomasterfrom
huijbers/jsii-static-checks
Apr 4, 2019
Merged

fix(jsii): check that static and nonstatic members don't share a name#430
rix0rrr merged 2 commits intomasterfrom
huijbers/jsii-static-checks

Conversation

@rix0rrr
Copy link
Copy Markdown
Collaborator

@rix0rrr rix0rrr commented Apr 4, 2019

This is not allowed in Java, and leads to compiler warnings in C#.

Fixes #427.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This is not allowed in Java, and leads to compiler warnings in C#.

Fixes #427.
@rix0rrr rix0rrr requested a review from a team as a code owner April 4, 2019 09:27
@@ -0,0 +1,17 @@
///!MATCH_ERROR: non-static member 'funFunction' of class 'Sub' conflicts with static member in ancestor 'SuperDuper'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

How about the case where I try to declare both on the same class?

@rix0rrr rix0rrr merged commit a0741cc into master Apr 4, 2019
@rix0rrr rix0rrr deleted the huijbers/jsii-static-checks branch April 4, 2019 14:41
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.

3 participants