报告推断类型与方法的预期返回类型不匹配的方法和块的返回值。 预期的返回类型取自其中任意一种:

示例:

# @return [Integer]
def method
  1.0
end