protected & internal are now forbidden in interfaces
This commit is contained in:
committed by
Mikhail Glukhikh
parent
5f43628f1b
commit
cba6870f52
Vendored
-14
@@ -1,14 +0,0 @@
|
||||
//ALLOW_AST_ACCESS
|
||||
package test
|
||||
|
||||
interface A {
|
||||
internal fun f() : Int
|
||||
internal val v : Int
|
||||
public var p : Int
|
||||
}
|
||||
|
||||
class B : A {
|
||||
override fun f(): Int = throw UnsupportedOperationException()
|
||||
public override var p: Int = 0
|
||||
override val v: Int = 0
|
||||
}
|
||||
Vendored
-20
@@ -1,20 +0,0 @@
|
||||
package test
|
||||
|
||||
public interface A {
|
||||
public abstract var p: kotlin.Int
|
||||
public abstract fun <get-p>(): kotlin.Int
|
||||
public abstract fun <set-p>(/*0*/ <set-?>: kotlin.Int): kotlin.Unit
|
||||
internal abstract val v: kotlin.Int
|
||||
internal abstract fun <get-v>(): kotlin.Int
|
||||
internal abstract fun f(): kotlin.Int
|
||||
}
|
||||
|
||||
public final class B : test.A {
|
||||
/*primary*/ public constructor B()
|
||||
public open override /*1*/ var p: kotlin.Int
|
||||
public open override /*1*/ fun <get-p>(): kotlin.Int
|
||||
public open override /*1*/ fun <set-p>(/*0*/ <set-?>: kotlin.Int): kotlin.Unit
|
||||
internal open override /*1*/ val v: kotlin.Int = 0
|
||||
internal open override /*1*/ fun <get-v>(): kotlin.Int
|
||||
internal open override /*1*/ fun f(): kotlin.Int
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
package test
|
||||
|
||||
interface A {
|
||||
internal fun f() : Int
|
||||
internal val v : Int
|
||||
public var p : Int
|
||||
internal set
|
||||
}
|
||||
-10
@@ -1,10 +0,0 @@
|
||||
package test
|
||||
|
||||
public interface A {
|
||||
public abstract var p: kotlin.Int
|
||||
public abstract fun <get-p>(): kotlin.Int
|
||||
internal abstract fun <set-p>(/*0*/ <set-?>: kotlin.Int): kotlin.Unit
|
||||
internal abstract val v: kotlin.Int
|
||||
internal abstract fun <get-v>(): kotlin.Int
|
||||
internal abstract fun f(): kotlin.Int
|
||||
}
|
||||
-14
@@ -1,14 +0,0 @@
|
||||
package test
|
||||
|
||||
interface A {
|
||||
internal open fun f() : Int = 0
|
||||
internal open val v : Int
|
||||
get() = 0
|
||||
public var p : Int
|
||||
get() = 5
|
||||
internal set(value) {
|
||||
}
|
||||
}
|
||||
|
||||
class B : A {
|
||||
}
|
||||
-20
@@ -1,20 +0,0 @@
|
||||
package test
|
||||
|
||||
public interface A {
|
||||
public open var p: kotlin.Int
|
||||
public open fun <get-p>(): kotlin.Int
|
||||
internal open fun <set-p>(/*0*/ value: kotlin.Int): kotlin.Unit
|
||||
internal open val v: kotlin.Int
|
||||
internal open fun <get-v>(): kotlin.Int
|
||||
internal open fun f(): kotlin.Int
|
||||
}
|
||||
|
||||
public final class B : test.A {
|
||||
/*primary*/ public constructor B()
|
||||
public open override /*1*/ /*fake_override*/ var p: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun <get-p>(): kotlin.Int
|
||||
internal open override /*1*/ /*fake_override*/ fun <set-p>(/*0*/ value: kotlin.Int): kotlin.Unit
|
||||
internal open override /*1*/ /*fake_override*/ val v: kotlin.Int
|
||||
internal open override /*1*/ /*fake_override*/ fun <get-v>(): kotlin.Int
|
||||
internal open override /*1*/ /*fake_override*/ fun f(): kotlin.Int
|
||||
}
|
||||
Reference in New Issue
Block a user