"Make private" intention: fix some false positive cases

This commit is contained in:
Toshiaki Kameyama
2018-09-28 13:17:05 +03:00
committed by Mikhail Glukhikh
parent 7488056249
commit 061aa63a73
10 changed files with 88 additions and 5 deletions
@@ -0,0 +1,11 @@
// SKIP_ERRORS_BEFORE
// SKIP_ERRORS_AFTER
// IS_APPLICABLE: false
expect class C {
fun test()
}
<caret>actual class C {
actual fun test() {}
}
@@ -0,0 +1,11 @@
// SKIP_ERRORS_BEFORE
// SKIP_ERRORS_AFTER
// IS_APPLICABLE: false
expect class C {
fun test()
}
actual class C {
<caret>actual fun test() {}
}
@@ -0,0 +1,7 @@
// SKIP_ERRORS_BEFORE
// SKIP_ERRORS_AFTER
// IS_APPLICABLE: false
<caret>expect class C {
fun test()
}
@@ -0,0 +1,7 @@
// SKIP_ERRORS_BEFORE
// SKIP_ERRORS_AFTER
// IS_APPLICABLE: false
expect class C {
<caret>fun test()
}
@@ -0,0 +1,3 @@
// IS_APPLICABLE: false
annotation class Ann(va<caret>l x: Int)
@@ -0,0 +1,4 @@
// IS_APPLICABLE: false
interface Interface {
<caret>val x: String
}
@@ -1,7 +1,6 @@
// "Implement members" "false"
// ACTION: Create test
// ACTION: Make internal
// ACTION: Make private
// ACTION: Move 'A' to separate file
interface I {