Introduce "Function with = { ... }" inspection

#KT-17119 Fixed
This commit is contained in:
Toshiaki Kameyama
2018-12-11 17:36:17 +09:00
committed by Mikhail Glukhikh
parent 301b3aad06
commit 538a746df9
52 changed files with 622 additions and 1 deletions
@@ -0,0 +1,10 @@
<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>