vector.lua icon indicating copy to clipboard operation
vector.lua copied to clipboard

`nil` not listed as valid input for vector:set

Open michaeljosephpurdy opened this issue 1 year ago • 0 comments

Documentation says to call vector:set with nil if you don't want the underlying x or y to be changed.

However, doing that ends up triggering LSP diagnostic message:

Diagnostics:
1. Cannot assign `nil` to parameter `number`.
   - `nil` cannot match `number`
   - Type `nil` cannot match `number` [param-type-mismatch]

michaeljosephpurdy avatar Dec 30 '24 00:12 michaeljosephpurdy