Implement members: don't add 'actual' modifier for fake overrides
#KT-25044 Fixed
This commit is contained in:
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
expect interface ExpInterface {
|
||||
fun first()
|
||||
}
|
||||
|
||||
expect class ExpImpl : ExpInterface { }
|
||||
idea/testData/multiModuleQuickFix/implementMembersInActualClassNoExpectMember/common/common.kt.after
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
expect interface ExpInterface {
|
||||
fun first()
|
||||
}
|
||||
|
||||
expect class ExpImpl : ExpInterface { }
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Implement members" "true"
|
||||
// ERROR: Class 'ExpImpl' is not abstract and does not implement abstract member public abstract actual fun first(): Unit defined in ExpInterface
|
||||
|
||||
actual interface ExpInterface {
|
||||
actual fun first()
|
||||
}
|
||||
|
||||
actual class ExpImpl<caret> : ExpInterface
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
// "Implement members" "true"
|
||||
// ERROR: Class 'ExpImpl' is not abstract and does not implement abstract member public abstract actual fun first(): Unit defined in ExpInterface
|
||||
|
||||
actual interface ExpInterface {
|
||||
actual fun first()
|
||||
}
|
||||
|
||||
actual class ExpImpl : ExpInterface {
|
||||
override fun first() {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user