Fix a test failing at HEAD

It looks like it's failing as a result of my previous changes
to make public function/method arguments nullable by default.

I probably missed it, since it doesn't run with assertions
enabled.

Change-Id: Ifcf045d778302a0be771c3a75c94cec97cbf8060
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/301981
Reviewed-by: Paul Berry <paulberry@google.com>
This commit is contained in:
Ilya Yanok 2023-05-08 15:50:28 +00:00 committed by Commit Queue
parent 757d9ae199
commit a84e6461b2

View file

@ -6740,11 +6740,11 @@ class C<T> {
}
''';
var expected = '''
void test(C<int> x, double Function<S>(C<S>) y) {
void test(C<int> x, double Function<S>(C<S>)? y) {
x.f<double>(y);
}
class C<T> {
U f<U>(U Function<V>(C<V>) z) => throw 'foo';
U f<U>(U Function<V>(C<V>)? z) => throw 'foo';
}
''';
await _checkSingleFileChanges(content, expected, warnOnWeakCode: true);