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

Generics support #72

Open
lachlancooper opened this issue May 5, 2022 · 0 comments · May be fixed by #85
Open

Generics support #72

lachlancooper opened this issue May 5, 2022 · 0 comments · May be fixed by #85
Labels
bug Something isn't working enhancement New feature or request

Comments

@lachlancooper
Copy link

When I scan a repo using Go 1.18 generics, gokart panics with the message: zeroConst: unexpected T.

For reference, the only function in the repo using generics is as follows:

func mapSlice[T any, M any](a []T, f func(T) M) []M {
	n := make([]M, len(a))
	for i, e := range a {
		n[i] = f(e)
	}
	return n
}

It looks like x/tools/go/ssa is still waiting on generics support. I'm raising this here as a reference and reminder to check that analysis of generics works once that package is fixed.

@bradlarsen bradlarsen added bug Something isn't working enhancement New feature or request labels May 5, 2022
smoyer64 added a commit to selesy/gokart that referenced this issue Dec 31, 2022
@smoyer64 smoyer64 linked a pull request Dec 31, 2022 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working enhancement New feature or request
Development

Successfully merging a pull request may close this issue.

2 participants