Replace with binary operator: don't highlight when receiver is platform type
#KT-35097 Fixed
This commit is contained in:
committed by
Yan Zhulanow
parent
93db78e7ac
commit
ad3ea9a36a
+12
@@ -0,0 +1,12 @@
|
||||
public class Foo {
|
||||
public static class Bar {
|
||||
}
|
||||
|
||||
public Bar getBar1() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public Bar getBar2() {
|
||||
return new Bar();
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
public class Foo {
|
||||
public static class Bar {
|
||||
}
|
||||
|
||||
public Bar getBar1() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public Bar getBar2() {
|
||||
return new Bar();
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// HIGHLIGHT: INFORMATION
|
||||
fun main() {
|
||||
val bar1 = Foo().bar1
|
||||
val bar2 = Foo().bar2
|
||||
val b = bar1.<caret>equals(bar2)
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// HIGHLIGHT: INFORMATION
|
||||
fun main() {
|
||||
val bar1 = Foo().bar1
|
||||
val bar2 = Foo().bar2
|
||||
val b = bar1 == bar2
|
||||
}
|
||||
Reference in New Issue
Block a user