dart-sdk/docs/language
Lasse Reichstein Holst Nielsen e329e1ce29 Don't allow function values in assert tests.
Currently you can write
  assert(() { ... });
and the function will be called and the return value used as the assert test.
This feature isn't really worth its own complexity - if you want to get the same effect, you can just write all the function:
  assert(() { ... }());
With asserts in const initializer lists, where the function call is not possible anyway, the feature went from being not very useful to being actual an complication and exception for users to remember.

R=eernst@google.com, rnystrom@google.com

Review-Url: https://codereview.chromium.org/2974763002 .
2017-08-10 15:29:55 +02:00
..
informal Transferred the generalized void informal spec to docs/language/informal 2017-08-09 16:30:59 +02:00
.gitignore Ignore LaTeX output files in docs/language. 2017-03-24 15:45:15 +01:00
dart.sty Specification adjustments for covariant overrides in Dart 1. 2017-03-02 13:41:37 +01:00
dartLangSpec.tex Don't allow function values in assert tests. 2017-08-10 15:29:55 +02:00
Makefile Specify behavior of e?.v++ and e?.v-- 2015-06-11 15:01:06 -07:00