CreateExpect: shouldn't generate expect declaration from actual function with private, lateinit or const

#KT-33930 Fixed
This commit is contained in:
Dmitry Gridin
2019-10-02 12:11:27 +07:00
parent 9da6dcf840
commit eaa07dac17
19 changed files with 82 additions and 20 deletions
@@ -4,7 +4,6 @@
annotation class CommonAnnotation
expect class My {
tailrec fun foo(arg: Int): Int
var some: Boolean
@CommonAnnotation
fun initialize()
@@ -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() {
@@ -0,0 +1,2 @@
These declarations cannot be transformed:
actual lateinit var some: Boolean