dart-sdk/docs
Erik Ernst a12805b90f Gathered all spec snippets about operator == into one location
This was needed because we had a handful of long sentences, nearly
identical, specifying that operator == must not be overridden, except
if it's in a specific built-in class.

These locations have been adjusted several times because it's tricky,
and now we have this in just one location (so we won't forget to
include bool again, somewhere).

Note that this shows a couple of facts (this was already a consequence
of the wording in the language specification, but now it's explicit):
We can `switch` on constant lists, sets, maps, and function objects,
and similarly for element expressions in constant lists and sets, and
for keys in constant maps.

Bug: https://github.com/dart-lang/language/issues/188.
Change-Id: Ie54bce573ee577654b598926b711d6dc8eab6ff1
Reviewed-on: https://dart-review.googlesource.com/c/90462
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
2019-01-23 13:03:36 +00:00
..
language Gathered all spec snippets about operator == into one location 2019-01-23 13:03:36 +00:00
newsletter Newsletter 2017-11-24. 2017-11-24 16:27:00 +00:00
process Create breaking-changes.md 2019-01-17 11:56:15 +00:00