Closed hoc081098 closed 8 months ago
Oh, that's indeed incorrect. It should be the same as AutoCloseable.use
of course.
Silly, not sure how I missed that 🤔
Thanks for creating the report @hoc081098! I think we need to get another patch out in a couple days, before we switch to 2.x.x 😞
@nomisRev I have created PR #3387, which should fix this issue 🙏
What version are you currently using?
1.2.3
What would you like to see?
Preproduce by https://github.com/hoc081098/kotlin_playground/blob/master/src/main/kotlin/com/hoc081098/kotlin_playground/arrowkt/autoCloseable.kt
The console output:
The order of close method calls
AutoCloseable.use
: 3 -> 2 -> 1autoCloseScope
: 1 -> 2 -> 3