K2 difference from non-K2 compiler in Kotlin 1.9.0...
# k2-early-adopters
a
K2 difference from non-K2 compiler in Kotlin 1.9.0-RC related to context receivers, the above snipper works in pre-K2, but with K2 it errors out with the following:
Copy code
w: Language version 2.0 is experimental, there are no backwards compatibility guarantees for new language and library features
e: src/main/kotlin/Main.kt:51:1 Conflicting overloads: [context(WritableSchema<RrDb>, RrDb, Clock, TenantContext.Communities)
fun Users.Activity.Tracking.ping(user: UserId, deviceType: UserDailyActiveDevice, ip: String, userAgent: String): Int]
e: src/main/kotlin/Main.kt:61:1 Conflicting overloads: [context(WritableSchema<RrDb>, RrDb, Clock, TenantContext.Community)
fun Users.Activity.Tracking.ping(user: UserId, deviceType: UserDailyActiveDevice, ip: String, userAgent: String): Int]
This is a bug yes, not intended restriction? (filed to Youtrack as https://youtrack.jetbrains.com/issue/KT-59752 )
d
Probably a bug Thank you for the report