Add inspection for potentially wrongly placed unary operators
So #KT-18236 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
eaea160f0e
commit
647558c98a
@@ -0,0 +1 @@
|
||||
org.jetbrains.kotlin.idea.inspections.WrapUnaryOperatorInspection
|
||||
@@ -0,0 +1,3 @@
|
||||
fun Int.inc() = this + 1
|
||||
|
||||
val x = <caret>-1.inc()
|
||||
@@ -0,0 +1,3 @@
|
||||
fun Int.inc() = this + 1
|
||||
|
||||
val x = (-1).inc()
|
||||
Reference in New Issue
Block a user