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
@@ -5,4 +5,7 @@ interface Some
actual class A {
actual fun <caret>a(): Some = TODO()
private fun b() = "string"
actual lateinit var c: Int
const val d = "const"
}
@@ -5,4 +5,7 @@ interface Some
actual class A {
fun <caret>a(): Some = TODO()
private fun b() = "string"
lateinit var c: Int
const val d = "const"
}
@@ -1,2 +1,5 @@
These declarations cannot be transformed:
fun a() = TODO()
fun b() = &quot;string&quot;
actual lateinit var c: Int
const val d = &quot;const&quot;