fix error

This commit is contained in:
Tan, Kian-ting 2025-09-09 21:14:17 +08:00
parent f4f7df05b8
commit 553527c88c

View file

@ -546,10 +546,10 @@ function tyArgItemAux(input, pos)
end
function tyOfArgsAux(input)
function tyOfArgsAux(input, pos)
tyArgItem = Psr(tyArgItemAux)
rawFunc = seq([typ("lParen"), ty, many0(tyArgItem), typ("rParen")])
res = rawFunc.fun(input)
res = rawFunc.fun(input, pos)
if res != nothing
matched = vcat([("%argType")], vcat([res.matched[2]], res.matched[3]))
res = ParserResult(matched, res.remained)