dispatchrun / coroutine

Durable coroutines for Go

Home Page:https://dispatch.run

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

compiler: not implemented handling of `*ast.IndexListExpr` in substituteTypeArgs function

iamrajiv opened this issue · comments

Description

When I run examples/scrape, I am getting the below error:

➜  scrape git:(perf) ✗ make
./coroc .
2024/02/11 06:42:14.710485 reading, parsing and type-checking
2024/02/11 06:42:15.271370 building SSA program
2024/02/11 06:42:15.477581 building callgraph using vta algorithm
2024/02/11 06:42:15.849120 collecting generic instances
2024/02/11 06:42:15.849958 finding yield points
2024/02/11 06:42:15.849980 coloring functions
2024/02/11 06:42:15.850092 compiling package main
2024/02/11 06:42:15.851580 compiling function main main
2024/02/11 06:42:15.851687 compiling function literal main
panic: not implemented: *ast.IndexListExpr [recovered]
	panic: not implemented: *ast.IndexListExpr

goroutine 1 [running]:
...
...
...

Hi @achille-roussel,

After investigation, I found that that panic is happening because the substituteTypeArgs function in the types.go file is not handling the case for *ast.IndexListExpr properly.

To fix this issue, we need to add a case for *ast.IndexListExpr in the substituteTypeArgs function.

Fixed by #148