Daniel Berg
04/20/2021, 3:00 AMDaniel Berg
04/20/2021, 3:00 AMDaniel Berg
04/20/2021, 3:02 AMDaniel Berg
04/20/2021, 5:21 AMsimon.vergauwen
04/20/2021, 8:29 AM0.11.x
Right
and Left
are also "inner" classes of sealed class Either
.
They should however be static
inner classes on the JVM because they're subtypes of the sealed class
, and neither defines themselves as inner class
.
Looking at the Show Kotlin Bytecode feature in IntelliJ I don't see any synchronization/locks on the `Companion`s. Not to discredit your findings but I'm a bit stuck 😅Daniel Berg
04/20/2021, 1:55 PMDaniel Berg
04/20/2021, 1:56 PMDaniel Berg
04/20/2021, 1:56 PMDaniel Berg
04/20/2021, 1:58 PMsimon.vergauwen
04/20/2021, 1:58 PMDaniel Berg
04/20/2021, 1:59 PMDaniel Berg
04/20/2021, 1:59 PMsimon.vergauwen
04/20/2021, 1:59 PMsimon.vergauwen
04/20/2021, 1:59 PMDaniel Berg
04/21/2021, 5:19 PMDaniel Berg
04/21/2021, 5:19 PMDaniel Berg
04/21/2021, 5:20 PM