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:
@@ -8,7 +8,7 @@ fun <T, E> T.foo(x : E, y : A) : T {
|
||||
|
||||
this<warning>?.</warning>minus<T>(this)
|
||||
|
||||
this
|
||||
return this
|
||||
}
|
||||
|
||||
class A
|
||||
|
||||
Reference in New Issue
Block a user