To prevent unexpected errors, the type should be declared explicitly.
Example:
fun foo() = java.lang.String.valueOf(1)
The quick fix allows you to specify the return type:
fun foo(): String = java.lang.String.valueOf(1)