[kotlin] mpp: "create expect" should warn about inaccessible annotations

^KTIJ-20493 Fixed

GitOrigin-RevId: c1fbbe47db3dbe955545e1ba9169f419bba55f4a
This commit is contained in:
Dmitry Gridin
2021-12-17 16:58:06 +00:00
committed by intellij-monorepo-bot
parent 97ad13d9df
commit a43fedd524
17 changed files with 97 additions and 54 deletions
@@ -3,8 +3,6 @@
annotation class CommonAnnotation
expect class My {
tailrec fun foo(arg: Int): Int
@CommonAnnotation
fun initialize()
@@ -17,4 +17,4 @@ actual class <caret>My {
actual fun initialize() {
some = true
}
}
}
@@ -5,7 +5,7 @@ annotation class PlatformAnnotation
actual class <caret>My {
@PlatformAnnotation
actual tailrec fun foo(arg: Int): Int {
tailrec fun foo(arg: Int): Int {
if (arg <= 1) return 1
return foo(arg - 1)
}
@@ -17,4 +17,4 @@ actual class <caret>My {
actual fun initialize() {
some = true
}
}
}
@@ -1,2 +1,3 @@
These declarations cannot be transformed:
fun foo(arg: Int){...}
actual lateinit var some: Boolean