Add intention to expand boolean expression
#KT-38597 Fixed
This commit is contained in:
committed by
igoriakovlev
parent
f005091dfb
commit
343af60cb4
@@ -3,6 +3,7 @@
|
||||
// ACTION: Add non-null asserted (!!) call
|
||||
// ACTION: Flip '>'
|
||||
// ACTION: Replace overloaded operator with function call
|
||||
// ACTION: Expand boolean expression to 'if else'
|
||||
|
||||
class SafeType {
|
||||
operator fun compareTo(other : SafeType) = 0
|
||||
|
||||
+1
@@ -2,6 +2,7 @@
|
||||
// ACTION: Add non-null asserted (!!) call
|
||||
// ACTION: Flip '<'
|
||||
// ACTION: Replace overloaded operator with function call
|
||||
// ACTION: Expand boolean expression to 'if else'
|
||||
// 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)
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
// ACTION: Replace '&&' with '||'
|
||||
// ACTION: Replace overloaded operator with function call
|
||||
// ACTION: Simplify boolean expression
|
||||
// ACTION: Expand boolean expression to 'if else'
|
||||
// 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)
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
// ACTION: Flip '<='
|
||||
// ACTION: Enable a trailing comma by default in the formatter
|
||||
// ACTION: Replace overloaded operator with function call
|
||||
// ACTION: Expand boolean expression to 'if else'
|
||||
// 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,6 +2,7 @@
|
||||
// ACTION: Add non-null asserted (!!) call
|
||||
// ACTION: Flip '>='
|
||||
// ACTION: Replace overloaded operator with function call
|
||||
// ACTION: Expand boolean expression to 'if else'
|
||||
// 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