alilotfi
02/21/2017, 10:28 AMclass Credentials(val username = "", val token = "")
This produces the error: A type annotation is required on a value parameter
. So I have to write it this way:
class Credentials(val username: String = "", val token: String = "")
Why type inference cannot detect String
type?
Thank you