Skip to content

Invoking a setter for a field that only has a getter defined #2408

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 Apr 3, 2012 · 2 comments
Closed

Invoking a setter for a field that only has a getter defined #2408

DartBot opened this issue Apr 3, 2012 · 2 comments

Comments

@DartBot
Copy link

DartBot commented Apr 3, 2012

This issue was originally filed by [email protected]


dartc fails co19 test
Language/10_Expressions/15_Getter_Invocation_A07_t07.dart

class C {
  static get setter() {}
}

main() {
  try {
    C.setter = 1;
  } catch(var e) {}
}

The invocation of C.setter is not valid because there is no setter. For assignment of C.v 10.16 says it is a compile-time error if C does not declare implicitly or explicitly a setter v.

@DartBot
Copy link
Author

DartBot commented Apr 4, 2012

This comment was originally written by [email protected]


https://chromiumcodereview.appspot.com/9979004/


Set owner to [email protected].
Added Started label.

@DartBot
Copy link
Author

DartBot commented Apr 5, 2012

This comment was originally written by [email protected]


Added Fixed label.

dart-bot pushed a commit that referenced this issue Mar 27, 2020
git log --pretty=oneline 737f055d0a1cfb348178dbde6bd13f06704bf6d4..f87c05da8cd049efa26891f1e6927dcfe30777f2
f87c05da8cd049efa26891f1e6927dcfe30777f2 (HEAD -> master, origin/master, origin/HEAD) Always normalize paths before they are passed to the analyzer (#2409)
58bd44b5a46f27eae80cb2ec79af2b3f55faf291 hide mark option from outdated (#2403)
395f644e44c5d7d432623fb1ea74948bf05889db Fix pub outdated help messages consistency (#2408)
1b558f251b9b1d990015260ff9819160956c8093 Use different language version API. (#2400)
a9fdf9ff61f01507bbc9bcecc075f11dc09c13b9 Output a summary when there are newer version, but they cannot resolv… (#2387)
e0e396bf2aadbe21be5174784c6f37de87d34493 Outdated fix messages (#2401)

Change-Id: Icf5a6b8ec9ae50148689cac7bfe5fca33043a70a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/141246
Reviewed-by: Jonas Jensen <[email protected]>
Commit-Queue: Kevin Moore <[email protected]>
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