File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 44* During a dynamic type check, ` void ` is not required to be ` null ` anymore.
55 In practice, this makes overriding ` void ` functions with non-` void ` functions
66 safer.
7+ * During static analysis, a function declared using ` => ` with return type ` void `
8+ now allows the returned expression to have any type. For example, assuming the
9+ declaration ` int x; ` , it is now type correct to have ` void f() => ++x; ` .
710
811#### Strong Mode
912
@@ -17,6 +20,9 @@ Packages that implement `Future` must either type the `onValue` parameter to
1720` .then ` as returning ` FutureOr<T> ` , or else must leave the type of the parameter
1821entirely to allow inference to fill in the type.
1922
23+ * The following is also a change in strong mode: During static analysis, a
24+ function declared using ` => ` with return type ` void ` now allows the returned
25+ expression to have any type.
2026
2127### Core library changes
2228
You can’t perform that action at this time.
0 commit comments