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

tests/language/override_field_test case 3 #3894

Closed
DartBot opened this issue Jun 27, 2012 · 1 comment
Closed

tests/language/override_field_test case 3 #3894

DartBot opened this issue Jun 27, 2012 · 1 comment
Labels
area-test Cross-cutting test issues (use area- labels for specific failures; not used for package:test). P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@DartBot
Copy link

DartBot commented Jun 27, 2012

This issue was originally filed by zundel@google.com


Case 3 expects a static type warning when a static field overrides an another static field in a superclass.

class A {
  A() {} // DartC has no implicit constructors yet.

  int instanceFieldInA;
  static int staticFieldInA;
}

class B extends A {
  B() : super() {} // DartC has no implicit constructors yet.

  static int staticFieldInA; /// 03: static type warning
}

I think the test is wrong. I cannot find a place in version 0.10 of the spec where it calls for a static warning in this case.

@iposva-google
Copy link
Contributor

cc @sgmitrovic.
Added Area-Test, Triaged labels.

@DartBot DartBot added Type-Defect area-test Cross-cutting test issues (use area- labels for specific failures; not used for package:test). labels Jun 28, 2012
@kevmoo kevmoo added P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) and removed triaged 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). P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

4 participants