Add alphabetical sorting diagnostics with same ranges
This commit is contained in:
Vendored
+1
-1
@@ -8,7 +8,7 @@ fun testBinary2() {
|
||||
}
|
||||
|
||||
fun testElvis1() {
|
||||
todo() <!USELESS_ELVIS, UNREACHABLE_CODE!>?: ""<!>
|
||||
todo() <!UNREACHABLE_CODE, USELESS_ELVIS!>?: ""<!>
|
||||
}
|
||||
|
||||
fun testElvis2(s: String?) {
|
||||
|
||||
Vendored
+1
-1
@@ -50,6 +50,6 @@ fun test(arr: Array<Int>) {
|
||||
}
|
||||
|
||||
while (true) {
|
||||
break <!USELESS_ELVIS, UNREACHABLE_CODE!>?: null<!>
|
||||
break <!UNREACHABLE_CODE, USELESS_ELVIS!>?: null<!>
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -9,12 +9,12 @@ class CustomDelegate {
|
||||
class Kaboom() {
|
||||
// Here and below we should have errors for simple AND delegated
|
||||
init {
|
||||
<!UNINITIALIZED_VARIABLE, DEBUG_INFO_LEAKING_THIS!>delegated<!>.hashCode()
|
||||
<!DEBUG_INFO_LEAKING_THIS, UNINITIALIZED_VARIABLE!>delegated<!>.hashCode()
|
||||
<!UNINITIALIZED_VARIABLE!>simple<!>.hashCode()
|
||||
<!DEBUG_INFO_LEAKING_THIS!>withGetter<!>.hashCode()
|
||||
}
|
||||
|
||||
val other = <!UNINITIALIZED_VARIABLE, DEBUG_INFO_LEAKING_THIS!>delegated<!>
|
||||
val other = <!DEBUG_INFO_LEAKING_THIS, UNINITIALIZED_VARIABLE!>delegated<!>
|
||||
|
||||
val another = <!UNINITIALIZED_VARIABLE!>simple<!>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user