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 = { x = 1, y = 1 }
|
||||||
|
|
||||||
-- Point factory
|
-- Point factory
|
||||||
---@param x number
|
---@param x number | nil
|
||||||
---@param y number
|
---@param y number | nil
|
||||||
---@return any
|
---@return any
|
||||||
function Point:new( x, y )
|
function Point:new( x, y )
|
||||||
local point = {
|
local point = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue