https://kotlinlang.org logo
m

mbonnin

07/11/2023, 11:41 AM
What is
versionRequirements
in the kotlin metadata? Is it a build-time requirement? stdlib requirement? something else? Adding
-Xjvm-default=all
adds a Kotlin 1.4 requirement on the generated class and I'm curious the reason.
e

ephemient

07/11/2023, 11:45 AM
https://youtrack.jetbrains.com/issue/KT-4779 was added in Kotlin 1.4 so that seems to make sense
m

mbonnin

07/11/2023, 11:48 AM
Right. Thanks! Never realized there was per-class version requirements. I though it was all based on the top level metadata version.
m

mbonnin

07/18/2023, 6:57 PM
Thanks!
2 Views