Marc Knaup
09/16/2020, 6:39 PMconst?
I.e. (FooFeature as Feature).id uses the property getter and FooFeature.id uses the compile-time constantnanodeath
09/16/2020, 6:52 PMnanodeath
09/16/2020, 6:53 PMid returns; JVM should inline it at runtimeBig Chungus
09/16/2020, 6:53 PMMarc Knaup
09/16/2020, 6:54 PMconst works on any object, not just companions.Big Chungus
09/16/2020, 6:54 PMBig Chungus
09/16/2020, 6:54 PMBig Chungus
09/16/2020, 6:54 PMMarc Knaup
09/16/2020, 6:55 PMclass but with object as there will only ever be a single instance.Big Chungus
09/16/2020, 6:58 PM