Skip to content

Commit 923fcd8

Browse files
committed
fix #274
1 parent e44b3de commit 923fcd8

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## 1.5.0
44
* `NEW` setting `runtime.unicodeName`
5+
* `FIX` [#274](https://github.com./sumneko/lua-language-server/issues/274)
56

67
## 1.4.0
78
`2020-12-3`

script/parser/guide.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -733,8 +733,9 @@ function m.getKeyNameOfLiteral(obj)
733733
else
734734
return 'b'
735735
end
736+
else
737+
return 'x'
736738
end
737-
return nil
738739
end
739740

740741
function m.getKeyName(obj)

test/hover/init.lua

+17
Original file line numberDiff line numberDiff line change
@@ -1459,3 +1459,20 @@ local v: Object {
14591459
a: string,
14601460
}
14611461
]]
1462+
1463+
TEST [[
1464+
---@class Object
1465+
---@field a string
1466+
1467+
---@type Object[]
1468+
local t
1469+
1470+
local <?v?> = t[i]
1471+
1472+
print(v.a)
1473+
]]
1474+
[[
1475+
local v: Object {
1476+
a: string,
1477+
}
1478+
]]

0 commit comments

Comments
 (0)