concept field in category kotlin
appears as: fields, field

This is an excerpt from Manning's book The Joy of Kotlin.
Here, Kotlin guesses the type by looking forward to the value used to initialize the field. This is called type inference, and it lets you omit the type in numerous cases. But there are places where type inference won’t work, such as when the type is ambiguous or the field isn’t initialized. In these cases, you must specify the type.