Don't report inapplicable target for 'inline' keyword on property and its accessors

This commit is contained in:
Mikhael Bogdanov
2016-06-20 16:17:58 +03:00
parent db5d9940df
commit 2cc177255f
4 changed files with 5 additions and 9 deletions
@@ -15,12 +15,9 @@ abstract class A() {
class FinalClass() {
<!NON_FINAL_MEMBER_IN_FINAL_CLASS!>open<!> fun foo() {}
val i: Int = 1
<!WRONG_MODIFIER_TARGET!>open<!> <!WRONG_MODIFIER_TARGET!>inline<!> get(): Int = field
<!WRONG_MODIFIER_TARGET!>open<!> get(): Int = field
var j: Int = 1
<!WRONG_MODIFIER_TARGET!>open<!> <!WRONG_MODIFIER_TARGET!>inline<!> set(v: Int) {}
<!WRONG_MODIFIER_TARGET!>inline<!> val f: ()->Unit
get() = {}
<!WRONG_MODIFIER_TARGET!>open<!> set(v: Int) {}
}
<!INCOMPATIBLE_MODIFIERS!>private<!> <!INCOMPATIBLE_MODIFIERS!>public<!> class C
@@ -29,7 +29,6 @@ package illegal_modifiers {
public final class FinalClass {
public constructor FinalClass()
public final val f: () -> kotlin.Unit
public final val i: kotlin.Int = 1
public final var j: kotlin.Int
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean