mirror of
https://github.com/dart-lang/sdk
synced 2024-10-01 19:19:16 +00:00
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:
parent
5e67628e58
commit
e62ac32a7b
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue