Fix 'add not-null asserted call' quick fix for operation in
#KT-18529 Fixed
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// "Replace with safe (?.) call" "false"
|
||||
// ERROR: Infix call corresponds to a dot-qualified call 'p1.compareTo(p2)' which is not allowed on a nullable receiver 'p1'. Use '?.'-qualified call instead
|
||||
// ERROR: Operator call corresponds to a dot-qualified call 'p1.compareTo(p2)' which is not allowed on a nullable receiver 'p1'.
|
||||
// ACTION: Add non-null asserted (!!) call
|
||||
// ACTION: Flip '>'
|
||||
// ACTION: Replace overloaded operator with function call
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
// ACTION: Add non-null asserted (!!) call
|
||||
// ACTION: Flip '<'
|
||||
// ACTION: Replace overloaded operator with function call
|
||||
// ERROR: Infix call corresponds to a dot-qualified call 'w?.x.compareTo(42)' which is not allowed on a nullable receiver 'w?.x'. Use '?.'-qualified call instead
|
||||
// ERROR: Operator call corresponds to a dot-qualified call 'w?.x.compareTo(42)' which is not allowed on a nullable receiver 'w?.x'.
|
||||
|
||||
class Wrapper(val x: Int)
|
||||
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
// ACTION: Flip '>'
|
||||
// ACTION: Replace overloaded operator with function call
|
||||
// ACTION: Simplify boolean expression
|
||||
// ERROR: Infix call corresponds to a dot-qualified call 'w?.x.compareTo(42)' which is not allowed on a nullable receiver 'w?.x'. Use '?.'-qualified call instead
|
||||
// ERROR: Operator call corresponds to a dot-qualified call 'w?.x.compareTo(42)' which is not allowed on a nullable receiver 'w?.x'.
|
||||
|
||||
class Wrapper(val x: Int)
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// ACTION: Add non-null asserted (!!) call
|
||||
// ACTION: Flip '<='
|
||||
// ACTION: Replace overloaded operator with function call
|
||||
// ERROR: Infix call corresponds to a dot-qualified call 'w?.x.compareTo(42)' which is not allowed on a nullable receiver 'w?.x'. Use '?.'-qualified call instead
|
||||
// ERROR: Operator call corresponds to a dot-qualified call 'w?.x.compareTo(42)' which is not allowed on a nullable receiver 'w?.x'.
|
||||
|
||||
class Wrapper(val x: Int)
|
||||
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
// ACTION: Add non-null asserted (!!) call
|
||||
// ACTION: Flip '>='
|
||||
// ACTION: Replace overloaded operator with function call
|
||||
// ERROR: Infix call corresponds to a dot-qualified call 'w?.x.compareTo(42)' which is not allowed on a nullable receiver 'w?.x'. Use '?.'-qualified call instead
|
||||
// ERROR: Operator call corresponds to a dot-qualified call 'w?.x.compareTo(42)' which is not allowed on a nullable receiver 'w?.x'.
|
||||
|
||||
class Wrapper(val x: Int)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user