mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 21:21:18 +00:00
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:
parent
757d9ae199
commit
a84e6461b2
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue