Open checkraisefold opened 4 weeks ago
This busted function appears to be coroutine.wrap
for some reason
I have found a 100% repro https://raw.githubusercontent.com/evaera/roblox-lua-promise/refs/heads/master/lib/init.lua
Custom modded luau-analyze build, only change is to set LuauTypeSolverRelease to 645
luau-analyze.exe --mode=strict --fflags=LuauSolverV2=true init.lua
I cannot reproduce the crash on that file, unfortunately, on release 645. Do you actually require the whole repository there, and not just the singular file?
I cannot reproduce the crash on that file, unfortunately, on release 645. Do you actually require the whole repository there, and not just the singular file?
I am still able to repro on 649 on a debug build (maybe this doesn't happen on release, think it might be an assertion that is disabled) with the luau-lsp analyze CLI at least, and most likely original luau-analyze as per the original issue. I found this issue when using the whole repository, but the singular file also causes the issue.
Exception generated here: https://github.com/luau-lang/luau/blob/master/Analysis/src/Subtyping.cpp#L863-L866 where subTail is a
nullopt
.I don't have a repro, but it's coming from
OverloadResolver::selectOverload
when the ConstraintSolver tries to solve a FunctionCallConstraint. The function prototype being passed to the overload resolver is also very weird/invalid. See image.This is on a large file with 2,754 constraints generated at the time of the exception.