File tree 3 files changed +20
-1
lines changed
3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## 1.5.0
4
4
* ` NEW ` setting ` runtime.unicodeName `
5
+ * ` FIX ` [ #274 ] ( https://github.com./sumneko/lua-language-server/issues/274 )
5
6
6
7
## 1.4.0
7
8
` 2020-12-3 `
Original file line number Diff line number Diff line change @@ -733,8 +733,9 @@ function m.getKeyNameOfLiteral(obj)
733
733
else
734
734
return ' b'
735
735
end
736
+ else
737
+ return ' x'
736
738
end
737
- return nil
738
739
end
739
740
740
741
function m .getKeyName (obj )
Original file line number Diff line number Diff line change @@ -1459,3 +1459,20 @@ local v: Object {
1459
1459
a: string,
1460
1460
}
1461
1461
]]
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
+ ]]
You can’t perform that action at this time.
0 commit comments