protected & internal are now forbidden in interfaces
This commit is contained in:
committed by
Mikhail Glukhikh
parent
5f43628f1b
commit
cba6870f52
+4
-3
@@ -6,11 +6,12 @@ interface A {
|
||||
}
|
||||
|
||||
interface B {
|
||||
protected val c: String
|
||||
private val c: String
|
||||
get() = "FAIL"
|
||||
}
|
||||
|
||||
open class C {
|
||||
private val c: String = "FAIL"
|
||||
abstract class C {
|
||||
abstract protected val c: String
|
||||
}
|
||||
|
||||
open class D: C(), A, B {
|
||||
|
||||
Reference in New Issue
Block a user