We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 872607e commit 0127f3cCopy full SHA for 0127f3c
src/main/java/com/tang/intellij/lua/ty/Expressions.kt
@@ -323,7 +323,10 @@ private fun LuaIndexExpr.infer(context: SearchContext): ITy {
323
//from other class member
324
val propName = indexExpr.name
325
if (propName != null) {
326
+ // 查找 parent 定义时不应该影响当前index
327
+ val saveIdx = context.index
328
val prefixType = indexExpr.guessParentType(context)
329
+ context.index = saveIdx
330
331
prefixType.eachTopClass(Processor {
332
result = result.union(guessFieldType(propName, it, context))
0 commit comments