EmmyLua / IntelliJ-EmmyLua

Lua IDE/Debugger Plugin for IntelliJ IDEA
https://emmylua.github.io
Apache License 2.0
1.73k stars 290 forks source link

[建议]使用未定义的class变量,有警告/错误提示 #461

Open hymanlv opened 2 years ago

hymanlv commented 2 years ago

Environment(环境)

Rider 2020.3.3
Rider version Build #RD-203.7148.23, built on February 17, 2021
EmmyLua version 1.3.5.194-IDEA203
OS Windows 10 专业版, 21H1, 19043.1526

What are the steps to reproduce this issue?(重现步骤?)

  1. 编辑lua代码 ---@class ClassA ---@field id number ---@field name string ---@field isOk boolean

function test() ---@type ClassA local a = {} a.xxx = 1 end

What happens?(出现什么问题?)

没有警告/错误提示

What were you expecting to happen?(期望?)

期望a.xxx = 1处有警告/错误提示: xxx不是ClassA的变量

Any logs, error output, etc?(有没有什么log, error输出?)

(If it’s long, please paste to https://ghostbin.com/ and insert the link here.)

Any other comments?(其它说明)