anchor.diff:    }
   
     test_dynamic_type() async {
  -    await assertErrorsInCode(r'''
  +    await assertNoErrorsInCode(r'''
   m(v) {
  -  var b = v as Object;
  +  v as Object;
   }
  -''', [
  -      error(HintCode.UNUSED_LOCAL_VARIABLE, 13, 1),
  -    ]);
  +''');
     }
   
     test_function() async {
  
positive.code:   }
  
    test_function2() async {
      await assertErrorsInCode(r'''
  class A {}
  
  class B<T extends A> {
    void foo() {
      T Function(T) f;
      A Function(A) g;
      g = f as A Function(A);
    }
  }
  ''', [
        error(HintCode.UNUSED_LOCAL_VARIABLE, 89, 1),
      ]);
    }
  
    test_generics() async {
  
negative.code:   }
  
    test_type_dynamic() async {
      await assertNoErrorsInCode(r'''
  m(v) {
    Object as dynamic;
  }
  ''');
    }
  
    test_type_supertype() async {
      await assertErrorsInCode(r'''
  m(int i) {
    i as Object;
  }
  ''', [
        error(HintCode.UNNECESSARY_CAST, 13, 11),
      ]);
    }
  
    test_type_type() async {
      await assertErrorsInCode(r'''
  m(num i) {
    i as num;
  }
  ''', [
        error(HintCode.UNNECESSARY_CAST, 13, 8),
      ]);
    }
  }
  