Skip to content

Commit dc6ad13

Browse files
committed
bug fix
1 parent c2af137 commit dc6ad13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/tang/intellij/lua/psi/impl/LuaNameExprMixin.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ abstract class LuaNameExprMixin : StubBasedPsiElementBase<LuaNameStub>, LuaExpr,
7777
//todo stub.module -> ty
7878
val stub = def.stub
7979
stub?.module?.let {
80-
return TySerializedClass(it)
80+
val memberType = TySerializedClass(it).findMemberType(def.name, context)
81+
if (memberType != null) return memberType
8182
}
8283

8384
var type: ITy = Ty.UNKNOWN

0 commit comments

Comments
 (0)