From c6535538f8717a8f6134020a5bee65341cf8280f Mon Sep 17 00:00:00 2001 From: Lewis Russell Date: Mon, 28 Sep 2026 14:19:42 +0100 Subject: fix(lua): enable param-type-mismatch diagnostic Problem: Argument type mismatches are excluded from EmmyLua checks. Solution: Correct runtime annotations and calls, document local checker workarounds, and enable the diagnostic. AI-assisted --- runtime/lua/vim/async/_future.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'runtime/lua/vim/async/_future.lua') diff --git a/runtime/lua/vim/async/_future.lua b/runtime/lua/vim/async/_future.lua index b0d51433aa..4c6e73f320 100644 --- a/runtime/lua/vim/async/_future.lua +++ b/runtime/lua/vim/async/_future.lua @@ -20,6 +20,7 @@ function Future:result() if self._err ~= nil then return false, self._err else + assert(self._result) return true, F.unpack_len(self._result) end end @@ -32,6 +33,7 @@ function Future:on_complete(callback) if self._err ~= nil then callback(self._err) else + assert(self._result) callback(nil, F.unpack_len(self._result)) end return function() end -- cgit