Gus
09/04/2020, 1:29 PMTheClass.Companion::method works, but is there an alternative that doesn't involve using .Companion? Something like TheClass::method would've been great but it only works with instance methods. I'm using Kotlin 1.4 in case that's relevant.Giorgos Neokleous
09/04/2020, 1:29 PMGus
09/04/2020, 1:30 PMstreetsofboston
09/04/2020, 2:35 PMTheClass for TheClass.Companion only works if the short-cut is a value, an instance, eg val c = TheClass or TheClass.something(). In any other case, you can’t use the short-cut and you need to use the full TheClass.Companion identifier.Gus
09/04/2020, 2:36 PM