Gavin Ray
09/16/2022, 9:16 PMInline classes with generic underlying type (experimental)
feature can improve some wrapper classes in Arrow, right?
In a few places in the source, I think I recall seeing data class Foo<T>(val value: T)
simon.vergauwen
09/19/2022, 6:32 AMGavin Ray
09/19/2022, 3:15 PMsimon.vergauwen
09/20/2022, 7:11 AMCFR Decompiler
based Kotlin IDEA plugin, but the IDEA integration seems a bit flaky 😅
I think the problem arises with something like Either<String, String>
and when
. If there is instance checking of runtime types involved, how can it be unboxed? 🤔 Since this is 90% of the usage in the generic cases of Arrow?Gavin Ray
09/20/2022, 3:59 PMGavin Ray
09/20/2022, 3:59 PMsimon.vergauwen
09/20/2022, 4:00 PMsimon.vergauwen
09/20/2022, 4:01 PMGavin Ray
09/20/2022, 4:03 PMEither<R,E>
but for some reason, decompiling with Kotlin 1.7.20-RC
seems to be using 1.7.10
simon.vergauwen
09/20/2022, 4:07 PM1.7.x
in a 1.6.x
project 😕
So the inferred types were using Definitely non-nullable types but the Kotlin version was not supporting it 😱Gavin Ray
09/20/2022, 4:44 PM