Skip to content

Incorrect setter parameter list does not cause any complaints from dart2js #4870

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

Closed
DartBot opened this issue Aug 31, 2012 · 7 comments
Closed
Assignees
Milestone

Comments

@DartBot
Copy link

DartBot commented Aug 31, 2012

This issue was originally filed by [email protected]


The following code behaves strangely in dart2js:

void main() {
  var foo = new Foo();
  foo.element = 'parrots!';
}

class Foo {
  void set element() {
    print('setting');
  }
}

Presumably there should be a compile-time error objecting to the illegal setter parameters, but I get neither a compile-time error nor a run-time error. The VM gives what appears to be a compile-time error.

@kasperl
Copy link

kasperl commented Sep 3, 2012

Added this to the Later milestone.

@kasperl
Copy link

kasperl commented Oct 17, 2012

Removed this from the Later milestone.

@kasperl
Copy link

kasperl commented Oct 17, 2012

Added this to the M2 milestone.

@peter-ahe-google
Copy link
Contributor

Set owner to @karlklose.

@peter-ahe-google
Copy link
Contributor

Issue #5068 has been merged into this issue.


cc @kasperl.
cc @larsbak.

@karlklose
Copy link
Contributor

Added Started label.

@karlklose
Copy link
Contributor

Fixed in revision 15774.


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
Projects
None yet
Development

No branches or pull requests

4 participants