anchor.diff:  }
   ''';
       _resolveTestUnit(code);
  -
  -    SimpleIdentifier identifier = _findIdentifier('foo');
  -    VariableDeclaration declaration =
  -        identifier.getAncestor((node) => node is VariableDeclaration);
  -    expect(declaration.initializer.staticType.name, 'double');
  -    expect(declaration.initializer.propagatedType, isNull);
  +    _expectInitializerType('foo', 'double', isNull);
     }
   
     void test_genericMethod_max_doubleInt() {
  
positive.code: }
  ''';
      _resolveTestUnit(code);
  
      SimpleIdentifier identifier = _findIdentifier('foo');
      VariableDeclaration declaration =
          identifier.getAncestor((node) => node is VariableDeclaration);
      expect(declaration.initializer.staticType.name, 'int');
      expect(declaration.initializer.propagatedType, isNull);
    }
  
    void test_genericMethod_nestedBound() {
  
negative.code: }
  ''';
      _resolveTestUnit(code);
      _expectInitializerType('foo', 'Future<String>', isNull);
    }
  
    void test_genericMethod_then_propagatedType() {
  