Added check for incompatible variance modifiers and repeated modifiers

This commit is contained in:
Svetlana Isakova
2014-12-19 17:37:22 +03:00
parent d2becce1ac
commit 7b09e85717
38 changed files with 310 additions and 79 deletions
@@ -4,4 +4,7 @@ package d
fun test() {
f()
}
}
var g: Int = 1
<!PACKAGE_MEMBER_CANNOT_BE_PROTECTED!>protected<!> set(i: Int) {}
@@ -2,5 +2,6 @@ package
package d {
internal val f: () -> kotlin.Int
internal var g: kotlin.Int
internal fun test(): kotlin.Unit
}