mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix infinite recursion in PyReferenceImpl#changePropertyMethodToSameNameGetter
Avoid converting function to property getter when the reference we are resolving sits inside a property(...) call (e.g., property(__getX)) In such context we actually need the bare function, not the property (cherry picked from commit a0409fde44955dd5407e3dcdb4fde339d6ba779b) IJ-MR-172702 GitOrigin-RevId: 537436bef686f3f49c940231b815922c5a0a133a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b1005df634
commit
1dc2650b56
@@ -2,6 +2,7 @@
|
||||
package com.jetbrains.python;
|
||||
|
||||
import com.intellij.codeInsight.documentation.DocumentationManager;
|
||||
import com.intellij.openapi.util.RecursionManager;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.psi.PsiElement;
|
||||
import com.intellij.psi.PsiManager;
|
||||
@@ -173,6 +174,7 @@ public class Py3QuickDocTest extends LightMarkedTestCase {
|
||||
}
|
||||
|
||||
public void testPropOldGetter() {
|
||||
RecursionManager.assertOnRecursionPrevention(myFixture.getTestRootDisposable());
|
||||
checkHTMLOnly();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user