anchor.diff:      ]);
     }
   
  -  @override
     test_typeParameter() async {
  -    // This test is overridden solely to make [value] nullable.
       // https://github.com/dart-lang/sdk/issues/14221
       await assertErrorsInCode(r'''
   class B<T> {
  
positive.code: ''', [
        error(CompileTimeErrorCode.INVALID_ASSIGNMENT, 23, 11),
      ]);
    }
  
    test_ifNullAssignment() async {
      await assertErrorsInCode('''
  void f(int i) {
    double d;
    d ??= i;
  }
  ''', [
        error(CompileTimeErrorCode.INVALID_ASSIGNMENT, 36, 1),
      ]);
    }
  
    test_ifNullAssignment_sameType() async {
      await assertNoErrorsInCode('''
  void f(int i) {
    int j;
    j ??= i;
  }
  ''');
    }
  
    test_ifNullAssignment_superType() async {
      await assertNoErrorsInCode('''
  void f(int i) {
    num n;
    n ??= i;
  }
  ''');
    }
  
    test_implicitlyImplementFunctionViaCall_1() async {
  
negative.code:     ]);
    }
  }
  
  @reflectiveTest
  class InvalidAssignmentWithoutNullSafetyTest extends PubPackageResolutionTest
      with InvalidAssignmentTestCases, WithoutNullSafetyMixin {
    test_ifNullAssignment() async {
      await assertErrorsInCode('''
  void f(int i) {
    double d;
    d ??= i;
  }
  ''', [
        error(CompileTimeErrorCode.INVALID_ASSIGNMENT, 36, 1),
      ]);
    }
  
    test_ifNullAssignment_sameType() async {
      await assertNoErrorsInCode('''
  void f(int i) {
    int j;
    j ??= i;
  }
  ''');
    }
  
    test_ifNullAssignment_superType() async {
      await assertNoErrorsInCode('''
  void f(int i) {
    num n;
    n ??= i;
  }
  ''');
    }
  
    test_typeParameter() async {
      // https://github.com/dart-lang/sdk/issues/14221
      await assertErrorsInCode(r'''
  class B<T> {
    T value;
    void test(num n) {
      value = n;
    }
  }
  ''', [
        error(CompileTimeErrorCode.INVALID_ASSIGNMENT, 57, 1),
      ]);
    }
  }
  