Commit 99026c86 authored by Ilya Kirillov's avatar Ilya Kirillov Committed by intellij-monorepo-bot
Browse files

[kotlin] fix IntroduceBackingPropertyIntention after...

[kotlin] fix IntroduceBackingPropertyIntention after https://github.com/JetBrains/kotlin/commit/8d79fab109f79fdb6272f73dcddbc472ac7a3af8

GitOrigin-RevId: fb05cf401c41e48043053725bd6f032674ac595d
parent 0420e9cc
Branches unavailable Tags unavailable
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -35,7 +35,7 @@ class IntroduceBackingPropertyIntention : SelfTargetingIntention<KtProperty>(
val bindingContext = property.getResolutionFacade().analyzeWithAllCompilerChecks(property).bindingContext
val descriptor = bindingContext.get(BindingContext.DECLARATION_TO_DESCRIPTOR, property) as? PropertyDescriptor ?: return false
if (bindingContext.get(BindingContext.BACKING_FIELD_REQUIRED, descriptor) == false) return false
if (bindingContext.get(BindingContext.BACKING_FIELD_REQUIRED, descriptor) != true) return false
val containingClass = property.getStrictParentOfType<KtClassOrObject>() ?: return false
if (containingClass.isExpectDeclaration()) return false
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment