I think something is severely wrong with 1.5.0-RC....
# announcements
p
I think something is severely wrong with 1.5.0-RC. https://github.com/PaulWoitaschek/KotlinBugSandbox/blob/c426f635c47751bde8450deed3d53359bd87b79f/src/commonTest/kotlin/MyTest.kt This just runs in M2 But if you bump it to 1.5.0-RC you end up with a very weird stacktrace I couldn't make sense of:
Copy code
kotlin.time.DurationKt.getNanoseconds(J)D
java.lang.NoSuchMethodError: kotlin.time.DurationKt.getNanoseconds(J)D
	at kotlinx.datetime.DateTimeUnit$TimeBased.<init>(DateTimeUnit.kt:54)
	at kotlinx.datetime.DateTimeUnit.<clinit>(DateTimeUnit.kt:108)
	at MyTest.test(MyTest.kt:8)
i
The current version of kotlinx-datetime is incompatible with stdlib 1.5 because of the changes in the experimental Duration class, see https://kotlinlang.slack.com/archives/C01923PC6A0/p1618432341022000
👍 1