Improve header/impl mismatch diagnostic messages
Try to report most mismatch errors on the 'impl' declaration. Only report a mismatch error on the 'header' declaration if no error would be otherwise reported on any 'impl' declaration in the compilation unit. Also render declaration kind in the message #KT-18447 In Progress
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// "Implement members" "true"
|
||||
// WITH_RUNTIME
|
||||
// ERROR: Header declaration 'InterfaceWithFuns' has no implementation in module light_idea_test_case for JVM
|
||||
// ERROR: 'header' interface 'InterfaceWithFuns' has no implementation in module light_idea_test_case for JVM
|
||||
header interface InterfaceWithFuns {
|
||||
fun funInInterface()
|
||||
}
|
||||
@@ -9,4 +9,4 @@ class ChildOfInterface : InterfaceWithFuns{
|
||||
override fun funInInterface() {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user