K1: Implement a checker that disallows to have different member scopes for expect open and its actual
^KT-22841 Fixed Review: https://jetbrains.team/p/kt/reviews/11603/timeline The commit also introduces `@AllowDifferentMembersInActual` annotation in stdlib which allows to suppress the diagnostic
This commit is contained in:
@@ -846,6 +846,15 @@ public inline fun kotlin.Short.toUShort(): kotlin.UShort
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <T : kotlin.AutoCloseable?, R> T.use(block: (T) -> R): R
|
||||
|
||||
@kotlin.annotation.Retention(value = AnnotationRetention.SOURCE)
|
||||
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.CLASS, AnnotationTarget.TYPEALIAS})
|
||||
@kotlin.annotation.MustBeDocumented
|
||||
@kotlin.ExperimentalMultiplatform
|
||||
@kotlin.SinceKotlin(version = "1.9")
|
||||
public final annotation class AllowDifferentMembersInActual : kotlin.Annotation {
|
||||
public constructor AllowDifferentMembersInActual()
|
||||
}
|
||||
|
||||
public interface Annotation {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user