Reports method and block return values whose inferred types don't match the method's expected return type. The expected return type is taken from any of:

Example:

# @return [Integer]
def method
  1.0
end