Introduce "remove actual" fix for ACTUAL_WITHOUT_EXPECT
Related to KT-25044
This commit is contained in:
@@ -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() { }
|
||||
}
|
||||
Reference in New Issue
Block a user