[Enhancement:] 一个不必要的警告
Closed this issue · 7 comments
PythonYunfei commented
thqby commented
加;@lint-disable class-non-dynamic-member-check
PythonYunfei commented
主要希望开启这类检查。但是希望检查的过程中可以识别return inst
,从而让后续的this
获得所有inst
相关的属性提示或补全。
目的不是取消这个警告。目的是增加inst
的属性补全提示 到this
。
希望先不关这个,什么时候有时间再去增强这个都行。这个wish完全不着急。
thqby commented
只有显式声明是支持的。
static Prototype.count := 0
这也是有效的
PythonYunfei commented
PythonYunfei commented
我是感觉只要是面向对象的语言, 肯定会符合面向对象里的common sense的..
主要 你只是对静态Call开了个特殊, 没啥副作用..
PythonYunfei commented
只有显式声明是支持的。
static Prototype.count := 0
这也是有效的
但这个 毕竟行为不一样
一个是给实例加属性,一个是给prototype加。 这样需要该代码,并破坏 原有的结构设计..
PythonYunfei commented
再次说一下,这个feature 不是一定要有,太麻烦就算了..😀