diff options
Diffstat (limited to 'script-beta/core/hover/table.lua')
-rw-r--r-- | script-beta/core/hover/table.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/script-beta/core/hover/table.lua b/script-beta/core/hover/table.lua index 97209a4f..f16eed9b 100644 --- a/script-beta/core/hover/table.lua +++ b/script-beta/core/hover/table.lua @@ -12,7 +12,7 @@ local function getKey(src) if class then return ('[%s]'):format(class) end - local tp = vm.getType(src.index) + local tp = vm.getInferType(src.index) if tp then return ('[%s]'):format(tp) end @@ -36,9 +36,9 @@ local function getField(src) or src.parent.type == 'getindex' then src = src.parent end - local tp = vm.getType(src) + local tp = vm.getInferType(src) local class = vm.getClass(src) - local literal = vm.getLiteral(src) + local literal = vm.getInferLiteral(src) local key = getKey(src) if type(literal) == 'string' and #literal >= 50 then literal = literal:sub(1, 47) .. '...' |