fix: bind variables with @class
using tail comments
#3044
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fixes #2673
這個是我上年最初接觸和使用 luals 時遇到的一個問題
當時由於找到繞過方式用
@type
,也就解決了但是最近自某版本起
@type
修正成會檢查該 class 的所有 missing field 而導致報錯。。。@class
後者好像合理一些
換句話還是得解決最根本的問題:
連續多行用 tail comment 寫
@class
時,無法正確 bind 到 variable最初由於不了解 luals 代碼庫,所以也沒有深究原因
現在算是稍為熟悉一點了,很快找到 fix 方式了 🙂