Forbid private functions with no body and private properties in traits which are abstract by default

This commit is contained in:
Mikhail Glukhikh
2015-09-29 15:14:57 +03:00
parent 930402d910
commit 7a99b3872b
11 changed files with 59 additions and 14 deletions
@@ -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
}
@@ -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
}