Adjusted language/assign/to_type_test.dart to avoid irrelevant

nnbd type error.

By the way, I don't understand why the trybots didn't complain about
this, all trybots were green when
https://dart-review.googlesource.com/c/sdk/+/134224 was auto-submitted.

Change-Id: Id410fc18e9ebf9be6c180740067857e2309f47ef
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/134291
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Auto-Submit: Erik Ernst <eernst@google.com>
This commit is contained in:
Erik Ernst 2020-02-04 22:04:40 +00:00 committed by commit-bot@chromium.org
parent f51187a18d
commit 3fb7f6a724

View file

@ -7,7 +7,7 @@
class C<T> {
f() {
T = null;
T = Null;
// ^
// [analyzer] STATIC_WARNING.ASSIGNMENT_TO_TYPE
// [cfe] Setter not found: 'T'.
@ -22,15 +22,15 @@ typedef void F();
main() {
new C<D>().f();
D = null;
D = Null;
//^
// [analyzer] STATIC_WARNING.ASSIGNMENT_TO_TYPE
// [cfe] Setter not found: 'D'.
E = null;
E = Null;
//^
// [analyzer] STATIC_WARNING.ASSIGNMENT_TO_TYPE
// [cfe] Setter not found: 'E'.
F = null;
F = Null;
//^
// [analyzer] STATIC_WARNING.ASSIGNMENT_TO_TYPE
// [cfe] Setter not found: 'F'.