묵시적 반환 타입을 가지고 있는 public, protected 함수 및 프로퍼티를 보고합니다. API 안정성을 고려해 그러한 타입은 명시적으로 지정하는 것이 좋습니다.

예:


  fun publicFunctionWhichAbusesTypeInference() =
      otherFunctionWithNotObviousReturnType() ?: yetAnotherFunctionWithNotObviousReturnType()

빠른 수정을 적용한 후:


  fun publicFunctionWhichAbusesTypeInference(): Api =
      otherFunctionWithNotObviousReturnType() ?: yetAnotherFunctionWithNotObviousReturnType()