CreateExpect: shouldn't generate expect declaration from actual function with private, lateinit or const
#KT-33930 Fixed
This commit is contained in:
+3
@@ -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"
|
||||
}
|
||||
+3
@@ -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() = "string"
|
||||
actual lateinit var c: Int
|
||||
const val d = "const"
|
||||
|
||||
Reference in New Issue
Block a user