alilotfi
fun func() = "" val something = func() // Type inference works
fun func() = "" class Credentials(val phoneNumber = func()) // Error, type inference doesn't work