JET-34 Require a return statement in a function with a block body
JET-77 Require a return type annotation for non-Unit returning functions with block bodies
This commit is contained in:
@@ -2,5 +2,5 @@ fun f(a:Int) : Int {
|
||||
val x = 42
|
||||
val y = 50
|
||||
|
||||
y
|
||||
return y
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user