Introduce inspection for redundant not-null extension receiver of inline

Related to KT-22303
This commit is contained in:
Mikhail Glukhikh
2018-01-19 16:14:30 +03:00
parent ad48099ca6
commit 7995ae05c5
8 changed files with 231 additions and 0 deletions
@@ -0,0 +1,7 @@
<html>
<body>
Reports inline functions with not-null extension receivers which does not use the fact that extension receiver is not null.
This function are dangerous to call in Kotlin 1.2 on actual nullable flexible receiver type.
Consider making receiver type nullable.
</body>
</html>