Skip to content

private field override does not work (unrelated classes in the same library, override induced with mixins) #35231

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

Open
jmesserly opened this issue Nov 20, 2018 · 1 comment
Labels
area-web-js Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop. P3 A lower priority bug or feature request web-dev-compiler

Comments

@jmesserly
Copy link

found while investigating dart-lang/language#104 (comment)

class M {
  int _foo = 42;
  int get foo => _foo;
}
class N {
  int _foo = 123;
}
class C extends M with N {}
main() {
  print(C().foo);
}

dartdevc prints the wrong answer. It should virtualize both M._foo and N._foo.

@jmesserly
Copy link
Author

there's probably an issue with library cycles too: dart-lang/language#104 (comment)

@jmesserly jmesserly added the P3 A lower priority bug or feature request label Nov 20, 2018
@vsmenon vsmenon added the area-web-js Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop. label Jul 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-web-js Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop. P3 A lower priority bug or feature request web-dev-compiler
Projects
None yet
Development

No branches or pull requests

2 participants