Added check for incompatible variance modifiers and repeated modifiers
This commit is contained in:
+4
-1
@@ -4,4 +4,7 @@ package d
|
||||
|
||||
fun test() {
|
||||
f()
|
||||
}
|
||||
}
|
||||
|
||||
var g: Int = 1
|
||||
<!PACKAGE_MEMBER_CANNOT_BE_PROTECTED!>protected<!> set(i: Int) {}
|
||||
+1
@@ -2,5 +2,6 @@ package
|
||||
|
||||
package d {
|
||||
internal val f: () -> kotlin.Int
|
||||
internal var g: kotlin.Int
|
||||
internal fun test(): kotlin.Unit
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user