Forbid private functions with no body and private properties in traits which are abstract by default
This commit is contained in:
Vendored
+2
-2
@@ -2,11 +2,11 @@ package test
|
||||
|
||||
public interface Super1 {
|
||||
public fun foo(): CharSequence
|
||||
private fun bar(): String
|
||||
private fun bar(): String = ""
|
||||
}
|
||||
|
||||
public interface Super2 {
|
||||
private fun foo(): String
|
||||
private fun foo(): String = ""
|
||||
public fun bar(): CharSequence
|
||||
}
|
||||
|
||||
|
||||
Vendored
+2
-2
@@ -6,11 +6,11 @@ public interface Sub : test.Super1, test.Super2 {
|
||||
}
|
||||
|
||||
public interface Super1 {
|
||||
private abstract fun bar(): kotlin.String
|
||||
private final fun bar(): kotlin.String
|
||||
public abstract fun foo(): kotlin.CharSequence
|
||||
}
|
||||
|
||||
public interface Super2 {
|
||||
public abstract fun bar(): kotlin.CharSequence
|
||||
private abstract fun foo(): kotlin.String
|
||||
private final fun foo(): kotlin.String
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user