IntelliJ-EmmyLua
IntelliJ-EmmyLua copied to clipboard
[建议]使用未定义的class变量,有警告/错误提示
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?(重现步骤?)
- 编辑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?(其它说明)
…