File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 4
4
* During a dynamic type check, ` void ` is not required to be ` null ` anymore.
5
5
In practice, this makes overriding ` void ` functions with non-` void ` functions
6
6
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; ` .
7
10
8
11
#### Strong Mode
9
12
@@ -17,6 +20,9 @@ Packages that implement `Future` must either type the `onValue` parameter to
17
20
` .then ` as returning ` FutureOr<T> ` , or else must leave the type of the parameter
18
21
entirely to allow inference to fill in the type.
19
22
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.
20
26
21
27
### Core library changes
22
28
You can’t perform that action at this time.
0 commit comments