== turned into a safe-call
This commit is contained in:
@@ -58,7 +58,7 @@ fun Int.foo() = this
|
||||
|
||||
command.foo
|
||||
|
||||
command.equals(null)
|
||||
command<error descr="[UNSAFE_CALL] Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Command?">.</error>equals(null)
|
||||
command?.equals(null)
|
||||
command.equals1(null)
|
||||
command?.equals1(null)
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
val a = <selection>1 == 2</selection>
|
||||
val b = 1.equals(2)
|
||||
val b1 = 1?.equals(2)
|
||||
val c = 2.equals(1)
|
||||
val d = 1 === 2
|
||||
val e = 1 != 2
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
1 == 2
|
||||
|
||||
1.equals(2)
|
||||
1?.equals(2)
|
||||
Reference in New Issue
Block a user