Fix leaking this test in 181 branch

This commit is contained in:
Mikhail Glukhikh
2018-04-27 17:42:40 +03:00
parent d9fdddceb9
commit 6e8247f7cf
@@ -32,6 +32,7 @@ class LeakingThisInspection : AbstractKotlinInspection() {
val context = klass.analyzeWithContent()
val leakingThese = context.getSliceContents(LEAKING_THIS)
these@ for ((expression, leakingThisDescriptor) in leakingThese) {
if (leakingThisDescriptor.classOrObject != klass) continue@these
val description = when (leakingThisDescriptor) {
is NonFinalClass ->
if (expression is KtThisExpression)