Add inspection for potentially wrongly placed unary operators

So #KT-18236 Fixed
This commit is contained in:
shiraji
2017-06-11 00:21:09 -04:00
committed by Mikhail Glukhikh
parent eaea160f0e
commit 647558c98a
11 changed files with 198 additions and 0 deletions
@@ -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()