'open' + 'private' and 'abstract' + 'private' are now incompatible for functions and properties #KT-9324 Fixed

This commit is contained in:
Mikhail Glukhikh
2015-09-28 13:29:06 +03:00
parent 7cf2840fe5
commit 4e91f2ffb7
7 changed files with 30 additions and 36 deletions
@@ -40,7 +40,7 @@ class IllegalModifiers1(
<!UNUSED_PARAMETER!>a<!>: Int)
//Check multiple illegal modifiers in constructor
class IllegalModifiers2(<!WRONG_MODIFIER_TARGET!>private<!> <!WRONG_MODIFIER_TARGET!>abstract<!> <!UNUSED_PARAMETER!>a<!>: Int)
class IllegalModifiers2(<!WRONG_MODIFIER_TARGET!>private<!> <!INCOMPATIBLE_MODIFIERS!>abstract<!> <!UNUSED_PARAMETER!>a<!>: Int)
//Check annotations with illegal modifiers in constructor
@@ -131,7 +131,7 @@ class IllegalModifiers8 {
<!INCOMPATIBLE_MODIFIERS!>const<!>
constructor() {}
constructor(<!WRONG_MODIFIER_TARGET!>private<!> <!WRONG_MODIFIER_TARGET!>enum<!> <!WRONG_MODIFIER_TARGET!>abstract<!> <!UNUSED_PARAMETER!>x<!>: Int) {}
constructor(<!WRONG_MODIFIER_TARGET!>private<!> <!WRONG_MODIFIER_TARGET!>enum<!> <!INCOMPATIBLE_MODIFIERS!>abstract<!> <!UNUSED_PARAMETER!>x<!>: Int) {}
}
class IllegalModifiers9 {