Commit 48fa94c
Report MISSING_DEFAULT_VALUE_FOR_PARAMETER only when NNBD is enabled.
It works now, because we consider types in opt-out libraries as S*,
and so far TypsSystem.isPotentiallyNonNullable(S*) returns false,
because TypeSystem.isNullable(S*) returns true. But I think this
is wrong. The spec says:
We say that a type T is nullable if Null <: T. This is equivalent to
the syntactic criterion that T is any of:
<cut>
- S* for some S where S is nullable
<cut>
So, we currently say that `int*` is nullable.
But this is wrong - `int` is not nullable.
R=brianwilkerson@google.com, paulberry@google.com
Change-Id: I87340fbed23cebd3d68c92579b7d1785b2fc097a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/106952
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>1 parent bd1ffcb commit 48fa94c
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6059 | 6059 | | |
6060 | 6060 | | |
6061 | 6061 | | |
| 6062 | + | |
| 6063 | + | |
6062 | 6064 | | |
6063 | 6065 | | |
6064 | 6066 | | |
| |||
0 commit comments