mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 09:43:08 +00:00
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:
parent
f51187a18d
commit
3fb7f6a724
1 changed files with 4 additions and 4 deletions
|
@ -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'.
|
||||
|
|
Loading…
Reference in a new issue