You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe this is a general issue, but I'll describe it as it pertains to assert, since that is a concrete example.
To Reproduce
localvalueassert(value, "assertion failed")
This yields a diagnostic warning:
Cannot assign unknown to parameter <T>?
Expected behavior
This seems unexpected to me, since a generic type param (<T>) should theoretically accept any type, especially since the parameter is optional. Is it a bug or expected behavior?
I'd prefer not to disable this diagnostic, because it is helpful in other cases where there is a real type mismatch.
version 3.4.2
Describe the bug
I believe this is a general issue, but I'll describe it as it pertains to
assert
, since that is a concrete example.To Reproduce
This yields a diagnostic warning:
Expected behavior
This seems unexpected to me, since a generic type param (
<T>
) should theoretically accept any type, especially since the parameter is optional. Is it a bug or expected behavior?I'd prefer not to disable this diagnostic, because it is helpful in other cases where there is a real type mismatch.
lua-language-server.log

neovim-lsp.log
The text was updated successfully, but these errors were encountered: