mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
CreateExpect: shouldn't generate expect declaration from actual function with private, lateinit or const
#KT-33930 Fixed GitOrigin-RevId: 15d32af70acd10553f671b95c962c1a2314d7ad3
This commit is contained in:
committed by
intellij-monorepo-bot
parent
0220076e53
commit
2c7e238688
-1
@@ -4,7 +4,6 @@
|
||||
annotation class CommonAnnotation
|
||||
expect class My {
|
||||
tailrec fun foo(arg: Int): Int
|
||||
var some: Boolean
|
||||
@CommonAnnotation
|
||||
fun initialize()
|
||||
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ actual class <caret>My {
|
||||
}
|
||||
|
||||
// Here we will have an error (lateinit is not supported on both sides)
|
||||
actual lateinit var some: Boolean
|
||||
lateinit var some: Boolean
|
||||
|
||||
@CommonAnnotation
|
||||
actual fun initialize() {
|
||||
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
These declarations cannot be transformed:
|
||||
actual lateinit var some: Boolean
|
||||
Reference in New Issue
Block a user