Introduce inspection to detect use of Unit as a standalone expression
So #KT-20631 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
5f4233e4bf
commit
ef71f7707d
@@ -0,0 +1,8 @@
|
||||
fun test(s: String?) {
|
||||
val x: Any = if (s == null) {
|
||||
""
|
||||
}
|
||||
else {
|
||||
<caret>Unit
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user