Introduce "remove actual" fix for ACTUAL_WITHOUT_EXPECT

Related to KT-25044
This commit is contained in:
Mikhail Glukhikh
2018-08-08 12:19:56 +03:00
parent a91442cd3b
commit ed5791ed9e
6 changed files with 36 additions and 0 deletions
@@ -0,0 +1,5 @@
expect interface ExpInterface {
fun first()
}
expect class ExpImpl : ExpInterface { }
@@ -0,0 +1,5 @@
expect interface ExpInterface {
fun first()
}
expect class ExpImpl : ExpInterface { }
@@ -0,0 +1,10 @@
// "Remove 'actual' modifier" "true"
// ERROR: Actual function 'first' has no corresponding expected declaration
actual interface ExpInterface {
actual fun first()
}
actual class ExpImpl : ExpInterface {
actual override fun <caret>first() { }
}
@@ -0,0 +1,10 @@
// "Remove 'actual' modifier" "true"
// ERROR: Actual function 'first' has no corresponding expected declaration
actual interface ExpInterface {
actual fun first()
}
actual class ExpImpl : ExpInterface {
override fun first() { }
}