private / protected / internal modifiers are deprecated in interfaces, relevant tests changed
This commit is contained in:
@@ -29,20 +29,19 @@ abstract class A {
|
||||
|
||||
interface B {
|
||||
|
||||
inline private fun good1() {}
|
||||
inline public final fun good2() {}
|
||||
inline protected final fun good3() {}
|
||||
inline final fun good3() {}
|
||||
inline final fun good4() {}
|
||||
|
||||
<!DECLARATION_CANT_BE_INLINED!>inline fun wrong1() {}<!>
|
||||
|
||||
<!DECLARATION_CANT_BE_INLINED!>inline open protected fun wrong2() {}<!>
|
||||
<!DECLARATION_CANT_BE_INLINED!>inline open fun wrong2() {}<!>
|
||||
|
||||
<!DECLARATION_CANT_BE_INLINED!>inline open public fun wrong3() {}<!>
|
||||
|
||||
<!DECLARATION_CANT_BE_INLINED!>inline open fun wrong4() {}<!>
|
||||
|
||||
<!DECLARATION_CANT_BE_INLINED!>inline protected fun wrong5()<!>
|
||||
<!DECLARATION_CANT_BE_INLINED!>inline fun wrong5()<!>
|
||||
|
||||
<!DECLARATION_CANT_BE_INLINED!>inline public fun wrong6()<!>
|
||||
|
||||
|
||||
@@ -23,17 +23,16 @@ public abstract class A {
|
||||
|
||||
public interface B {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
@kotlin.inline() private final fun good1(): kotlin.Unit
|
||||
@kotlin.inline() public final fun good2(): kotlin.Unit
|
||||
@kotlin.inline() protected final fun good3(): kotlin.Unit
|
||||
@kotlin.inline() public final fun good3(): kotlin.Unit
|
||||
@kotlin.inline() public final fun good4(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
@kotlin.inline() public open fun wrong1(): kotlin.Unit
|
||||
@kotlin.inline() protected open fun wrong2(): kotlin.Unit
|
||||
@kotlin.inline() public open fun wrong2(): kotlin.Unit
|
||||
@kotlin.inline() public open fun wrong3(): kotlin.Unit
|
||||
@kotlin.inline() public open fun wrong4(): kotlin.Unit
|
||||
@kotlin.inline() protected abstract fun wrong5(): kotlin.Unit
|
||||
@kotlin.inline() public abstract fun wrong5(): kotlin.Unit
|
||||
@kotlin.inline() public abstract fun wrong6(): kotlin.Unit
|
||||
@kotlin.inline() public abstract fun wrong7(): kotlin.Unit
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user