Kotlin: object declarations

Example:

object MySingleton { fun doSomething() {} }
Kotlin uses object declarations for singletons.

Solution:

MySingleton.doSomething()

Beginner's Guide to Kotlin