Files
kotlin-fork/idea/resources/inspectionDescriptions/FunctionWithLambdaExpressionBody.html
T
Toshiaki Kameyama 538a746df9 Introduce "Function with = { ... }" inspection
#KT-17119 Fixed
2018-12-26 19:14:06 +03:00

10 lines
215 B
HTML

<html>
<body>
This inspection reports function with `<b>= { ... }</b>` and inferred return type.
<pre>
fun sum(a: Int, b: Int) = { a + b } // The return type of this function is '() -> Int'.
</pre>
</body>
</html>