Tell lua lsp about nil-ed point
This commit is contained in:
parent
57a69a6e0c
commit
27a0003579
1 changed files with 2 additions and 2 deletions
|
|
@ -3,8 +3,8 @@
|
|||
Point = { x = 1, y = 1 }
|
||||
|
||||
-- Point factory
|
||||
---@param x number
|
||||
---@param y number
|
||||
---@param x number | nil
|
||||
---@param y number | nil
|
||||
---@return any
|
||||
function Point:new( x, y )
|
||||
local point = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue