<img width="918" height="157" alt="Image" src="https://github.com/user-attachments/assets/30871136-29ab-428b-a6c1-89af6cb8ac43" /> ```lua local ty --- @type type|fun(x:any): boolean --- @param _ty fun(v:any):boolean local function validate(_ty) end if type(ty) == 'function' then validate(ty) end ``` Changing `type|fun(x:any): boolean` to `string|fun(x:any): boolean` doesn't have the problem.
Activity
fix: type guard narrowing for union functions
fix: type guard narrowing for union functions