Introduce quick-fix "create expected class / function / property"

#KT-27075 Fixed
This commit is contained in:
Mikhail Glukhikh
2018-11-15 16:43:33 +03:00
parent 5c6f776c09
commit 2277dcc76f
47 changed files with 706 additions and 92 deletions
@@ -0,0 +1,2 @@
// My: to be implemented
// DISABLE-ERRORS
@@ -0,0 +1,13 @@
// My: to be implemented
// DISABLE-ERRORS
expect class My {
fun foo(param: String): Int
fun String.bar(y: Double): Boolean
fun baz()
constructor(flag: Boolean)
val isGood: Boolean
var status: Int
}
+19
View File
@@ -0,0 +1,19 @@
// "Create expected class in common module testModule_Common" "true"
// DISABLE-ERRORS
actual class <caret>My {
actual fun foo(param: String): Int = 42
actual fun String.bar(y: Double): Boolean = true
actual fun baz() {}
actual constructor(flag: Boolean) {}
actual val isGood: Boolean
get() = true
actual var status: Int
get() = 0
set(value) {}
}
@@ -0,0 +1,19 @@
// "Create expected class in common module testModule_Common" "true"
// DISABLE-ERRORS
actual class My {
actual fun foo(param: String): Int = 42
actual fun String.bar(y: Double): Boolean = true
actual fun baz() {}
actual constructor(flag: Boolean) {}
actual val isGood: Boolean
get() = true
actual var status: Int
get() = 0
set(value) {}
}