Skip to content

Commit 122f07c

Browse files
munificentcommit-bot@chromium.org
authored andcommitted
Fix mistakes in variance_downwards_inference_test.
Fix flutter#43422. Change-Id: Ic315148284e45a26cfe88ac6177c16c671a318eb Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/162961 Commit-Queue: Bob Nystrom <[email protected]> Reviewed-by: Erik Ernst <[email protected]>
1 parent 42f334f commit 122f07c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/language/variance/variance_downwards_inference_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class A<out T> {
1010
final T _x;
1111
A(T x):_x = x;
1212
T get x => _x;
13-
void set x(Object value) {}
13+
void set x(Object? value) {}
1414
}
1515

1616
class B<in T> {
@@ -22,7 +22,7 @@ class C<out T, S> {
2222
final T _x;
2323
C(T x, S y):_x = x;
2424
T get x => _x;
25-
void set x(Object value) {}
25+
void set x(Object? value) {}
2626
void set y(S _value) {}
2727
}
2828

0 commit comments

Comments
 (0)