Fix "cannot override invisible member" diagnostic message

Fix "cannot has", delete "in class ..." as it's already present in the message
(function ... defined in class ...)
This commit is contained in:
Alexander Udalov
2014-04-17 18:51:40 +04:00
parent 1deb55bfde
commit 72dfca1698
6 changed files with 21 additions and 5 deletions
@@ -0,0 +1,10 @@
// !DIAGNOSTICS_NUMBER: 1
// !DIAGNOSTICS: CANNOT_OVERRIDE_INVISIBLE_MEMBER
open class A {
private open fun foo() {}
}
class B : A() {
override fun foo() {}
}