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

Invalid test: language/static_field_test #12541

Open
bwilkerson opened this issue Aug 19, 2013 · 0 comments
Open

Invalid test: language/static_field_test #12541

bwilkerson opened this issue Aug 19, 2013 · 0 comments
Labels
area-test Cross-cutting test issues (use area- labels for specific failures; not used for package:test). type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@bwilkerson
Copy link
Member

The test language/static_field_test appears to be expecting a static type warning (in all four variations) but as far as I can tell there shouldn't be any warning. My best guess is that the reference to the static member using an instance of the class is the intended trigger, but in all cases the instance has a static type of 'dynamic', so there's no way to determine that the member is static.

I think that either the expectation of a warning needs to be removed or the instance needs to be given an appropriate static type.

Please let me know if there is another warning that should be produced that I'm just not seeing.

@bwilkerson bwilkerson added Type-Defect area-test Cross-cutting test issues (use area- labels for specific failures; not used for package:test). labels Aug 19, 2013
@kevmoo kevmoo added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) and removed priority-unassigned labels Feb 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-test Cross-cutting test issues (use area- labels for specific failures; not used for package:test). type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

2 participants