Introduce "Function with = { ... }" inspection
#KT-17119 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
301b3aad06
commit
538a746df9
@@ -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>
|
||||
Reference in New Issue
Block a user