private and override are no more compatible

This commit is contained in:
Mikhail Glukhikh
2015-09-25 17:25:22 +03:00
parent 9ccf1a1729
commit ebfb6c8468
3 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ class E : C(), T {
}
class F : C(), T {
<!CANNOT_WEAKEN_ACCESS_PRIVILEGE!>private<!> override fun foo() {}
<!CANNOT_WEAKEN_ACCESS_PRIVILEGE, INCOMPATIBLE_MODIFIERS!>private<!> <!INCOMPATIBLE_MODIFIERS!>override<!> fun foo() {}
}
class G : C(), T {