mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[kotlin] mpp: "create expect" should warn about inaccessible annotations
^KTIJ-20493 Fixed GitOrigin-RevId: c1fbbe47db3dbe955545e1ba9169f419bba55f4a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
97ad13d9df
commit
a43fedd524
-2
@@ -3,8 +3,6 @@
|
||||
|
||||
annotation class CommonAnnotation
|
||||
expect class My {
|
||||
tailrec fun foo(arg: Int): Int
|
||||
|
||||
@CommonAnnotation
|
||||
fun initialize()
|
||||
|
||||
|
||||
+1
-1
@@ -17,4 +17,4 @@ actual class <caret>My {
|
||||
actual fun initialize() {
|
||||
some = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -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
@@ -1,2 +1,3 @@
|
||||
These declarations cannot be transformed:
|
||||
fun foo(arg: Int){...}
|
||||
actual lateinit var some: Boolean
|
||||
|
||||
Reference in New Issue
Block a user