Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug without instantiation #414

Open
gocpicnic opened this issue Apr 4, 2025 · 0 comments
Open

bug without instantiation #414

gocpicnic opened this issue Apr 4, 2025 · 0 comments

Comments

@gocpicnic
Copy link

In users.bob.go,some code like:

type userWhere[Q sqlite.Filterable] struct {
	ID        sqlite.WhereMod[Q, int32]
	Name      sqlite.WhereMod[Q, string]
	Email     sqlite.WhereMod[Q, string]
	CreatedAt sqlite.WhereNullMod[Q, time.Time]
}

when I run :
easyjson -all users.bob.go
I got:
./users.bob_easyjson.go:46:8: cannot use generic type userWhere[Q sqlite.Filterable] without instantiation

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

No branches or pull requests

1 participant