Highlighting ranges should never include comments before/after element

This commit is contained in:
Valentin Kipyatkov
2014-10-31 14:24:13 +03:00
parent f0b93f3de3
commit 0806de6782
8 changed files with 33 additions and 20 deletions
@@ -23,6 +23,6 @@ import p.*
open class K0 : Foo()
class K : K0() {
<!VIRTUAL_MEMBER_HIDDEN!>// We keep this test to make sure ACCIDENTAL_OVERRIDE is not reported
fun <!CANNOT_WEAKEN_ACCESS_PRIVILEGE!>foo<!>(f: () -> Unit)<!> {}
// We keep this test to make sure ACCIDENTAL_OVERRIDE is not reported
<!VIRTUAL_MEMBER_HIDDEN!>fun <!CANNOT_WEAKEN_ACCESS_PRIVILEGE!>foo<!>(f: () -> Unit)<!> {}
}
@@ -1,7 +1,5 @@
// FILE: a.kt
<!CONFLICTING_JVM_DECLARATIONS!>val x<!> = 1
// FILE: b.kt
<!CONFLICTING_JVM_DECLARATIONS!>fun getX()<!> = 1