Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Does gocov not support generics in Go version 1.20? #102

Open
FanLu1994 opened this issue Jun 6, 2023 · 1 comment
Open

Does gocov not support generics in Go version 1.20? #102

FanLu1994 opened this issue Jun 6, 2023 · 1 comment

Comments

@FanLu1994
Copy link

I'm using go build cover with Go version 1.20, and then generating an old version coverage report using go tool covdata textfmt -i . -o result.txt. However, when I tried to convert the report using gocov, I encountered an error. Does gocov not support generics in Go version 1.20?
error

 expected '(', found '[' (and 5 more errors)
@axw
Copy link
Owner

axw commented Jun 8, 2023

Type parameters should be supported with #91. I haven't used covdata, so I don't know if there's something special about it that is stopping things from working.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants