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
2021.1.1 Community Edition (build #IC-211.7142.45)
Luanalysis version
1.2.3
OS
Windows 10
What are the steps to reproduce this issue?
Create a Lua file with the following content:
---@alias set<x> table<x,any>
---@generic T
---@param value set<T>
---@return set<T>
local function identity(value)
return value
end
---@type set<set<number>>
local aSet = {}
---@type set<set<number>>
local bSet = identity(aSet)
Environment
What are the steps to reproduce this issue?
Create a Lua file with the following content:
Maintainer Edit: Minimal Reproduction
What happens?
Luanalysis generates a "Type mismatch" error on line
local bSet = identity(aSet)
:What were you expecting to happen?
No error: this should be a valid assign.
Any logs, error output, etc?
None
Any other comments?
The problem seems to only happen with
alias
types involved. The following lines do not generate an errorThe text was updated successfully, but these errors were encountered: