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 #521

Closed
ghost opened this issue Nov 18, 2011 · 2 comments
Closed
Assignees

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); }

}

@scheglov
Copy link
Contributor

Set owner to @scheglov.

@scheglov
Copy link
Contributor

scheglov commented Dec 6, 2011

http://codereview.chromium.org/8786002/


Added Fixed label.

This issue was closed.
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

No branches or pull requests

1 participant