Clarify status of function-type syntax in 1.24

Bug:
Change-Id: Ic4d49612e8e4202bc25e0fb9ae5b194d29dc2f7e
Reviewed-on: https://dart-review.googlesource.com/12286
Reviewed-by: Anders Sandholm <sandholm@google.com>
Commit-Queue: Anders Sandholm <sandholm@google.com>
This commit is contained in:
Michael Thomsen 2017-10-09 11:19:25 +00:00 committed by commit-bot@chromium.org
parent 5e67628e58
commit e62ac32a7b

View file

@ -160,6 +160,8 @@
`void f() => ++x;`.
* A new function-type syntax has been added to the language.
**Warning**: *In Dart 1.24, this feature is incomplete, and not stable in the Analyzer.*
Intuitively, the type of a function can be constructed by textually replacing
the function's name with `Function` in its declaration. For instance, the
type of `void foo() {}` would be `void Function()`. The new syntax may be used