I just found <https://youtrack.jetbrains.com/issue...
# announcements
w
I just found https://youtrack.jetbrains.com/issue/KT-24925, to allow short-hand notation for enum/sealed class values when the compiler can infer the type (so
foo(.Baz)
instead of
foo(Foo.Bar.Baz)
. It hope it’s considered for implementation in the relatively near future, would help greatly with verbosity!
n
Would be nice if it also worked for equality checks and when (I assume it would)
as that's easily some of the most common code with enum classes
(and sealed classes)