diff options
Diffstat (limited to 'script/vm')
-rw-r--r-- | script/vm/infer.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/script/vm/infer.lua b/script/vm/infer.lua index fabc9828..dba46ffc 100644 --- a/script/vm/infer.lua +++ b/script/vm/infer.lua @@ -76,7 +76,9 @@ local viewNodeSwitch = util.switch() : case 'global' : call(function (source, infer) if source.cate == 'type' then - infer._hasClass = true + if source.name ~= 'unknown' then + infer._hasClass = true + end if source.name == 'number' then infer._hasNumber = true end |