Inspection detecting redundant Unit return type (#1144)
This commit is contained in:
@@ -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>) {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user