Join Slack
Powered by
Might it possible for the compiler to infer the ty...
# announcements
d
Daniel
05/19/2017, 10:32 PM
Might it possible for the compiler to infer the type of a function or constructor parameter in the future? (If a default value is given)
Copy code
data class Pencil(var size: Int = 50)
to
Copy code
data class Pencil(var size = 50)
2
Views
Open in Slack
Previous
Next