Introduce inspection to detect use of Unit as a standalone expression

So #KT-20631 Fixed
This commit is contained in:
Toshiaki Kameyama
2017-10-12 10:28:21 +03:00
committed by Mikhail Glukhikh
parent 5f4233e4bf
commit ef71f7707d
18 changed files with 196 additions and 0 deletions
@@ -0,0 +1,8 @@
fun test(s: String?) {
val x: Any = if (s == null) {
""
}
else {
<caret>Unit
}
}