报告结果类型和函数体之间缺少 =

当用作函数的结果类型时,不能细化类型。 但是,当结果类型和函数体之间缺少 = 时,它可能看起来很精致。

示例:


  def test(): T {}

在应用快速修复后


  def test(): T = {}