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

Incorrect constructor renaming when factory class implements the interface #523

Closed
ghost opened this issue Nov 18, 2011 · 2 comments
Closed
Labels
closed-not-planned Closed as we don't intend to take action on the reported issue web-dart2js

Comments

@ghost
Copy link

ghost commented Nov 18, 2011

language tests: FactoryImplementationTest.dart

interface A factory B {
  A(int x, int y);
}

// new A() invokes B constructor because B implements A.
class B implements A {
  final int x;
  final int y;

  B(this.x, this.y);
  
// This factory will never be invoked.
  factory A(int a, int b) { return new B(0, 0); }

}

@anders-sandholm
Copy link
Contributor

Removed Area-Frog label.
Added Area-Dart2JS, FromAreaFrog labels.

@kasperl
Copy link

kasperl commented Jun 12, 2012

Added WontFix label.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-not-planned Closed as we don't intend to take action on the reported issue web-dart2js
Projects
None yet
Development

No branches or pull requests

3 participants