Right hand of assignments can also be a function c...
# getting-started
a
Right hand of assignments can also be a function call, but it works well:
Copy code
fun func() = ""
val something = func() // Type inference works
But not in constructors:
Copy code
fun func() = ""
class Credentials(val phoneNumber = func()) // Error, type inference doesn't work