Inspection detecting redundant Unit return type (#1144)

This commit is contained in:
nd
2017-07-07 16:51:53 +02:00
committed by Dmitry Jemerov
parent 5f9a33564a
commit 33a93e5fc5
13 changed files with 147 additions and 30 deletions
@@ -0,0 +1,4 @@
fun foo(): <caret>Unit = bar()
fun bar() {
}
@@ -0,0 +1,4 @@
fun foo() = bar()
fun bar() {
}
@@ -0,0 +1,3 @@
fun main(args: Array<String>): <caret>Unit {
}
@@ -0,0 +1,3 @@
fun main(args: Array<String>) {
}