KT-12015 (Kotlin Lint False Positive for Bundle.getInt())

Java approach is not sufficient here, in Kotlin receivers can be implicit.
Use Kotlin extension/dispatch receivers to figure out the receiver type for our method call.
(cherry picked from commit cdedf1d)
This commit is contained in:
Yan Zhulanow
2016-06-10 21:35:41 +03:00
parent 530ab42de6
commit 1de05b965e
6 changed files with 90 additions and 16 deletions
@@ -21,6 +21,8 @@ import org.jetbrains.uast.visitor.UastVisitor
* Represents a call expression (function call, constructor call, array initializer).
*/
interface UCallExpression : UExpression, UResolvable {
val receiverType: UType?
/**
* Returns the call kind.
*/