bdf6b9505e
The interpretation of the subtype check result depends on the mode. In partial NNBD mode all type errors that wouldn't be errors in non-NNBD programs should become warnings. In full NNBD mode all such errors are errors. This CL adds the mode explicitly to the interface of the subtype check as a parameter. Bug: http://dartbug.com/38673 Change-Id: I14bcdd260618530cfdd8189c01abba7469a16679 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/119545 Reviewed-by: Johnni Winther <johnniwinther@google.com> Commit-Queue: Dmitry Stefantsov <dmitryas@google.com>