Files
sdk/pkg
Konstantin Shcheglov 48fa94cfdd 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>
2019-06-21 15:53:17 +00:00
..
2019-06-18 03:07:58 +00:00
2019-06-21 04:00:35 +00:00