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

Type error after upgrading to 1.0.0 #9

Open
ShawnToubeau opened this issue Jan 8, 2024 · 4 comments
Open

Type error after upgrading to 1.0.0 #9

ShawnToubeau opened this issue Jan 8, 2024 · 4 comments
Assignees

Comments

@ShawnToubeau
Copy link

Hi!

I recently upgraded to v1.0.0 and now I'm getting this type error Cannot use *T as the type SubtypePtr[T].

You can see it's happening for the example code taken from the readme.

Screenshot 2024-01-08 at 10 54 54 AM

Thanks!

@loreto
Copy link
Contributor

loreto commented Jan 22, 2024

@ShawnToubeau sorry for the delay, are you still seeing this error? We have an example here: https://github.com/jetpack-io/typeid-go/blob/main/subtype_example_test.go that is pretty much what you posted, but it seems to be working fine, so I'm trying to understand the difference between your code and that example.

@ShawnToubeau
Copy link
Author

Hi @loreto! Yes, I'm still seeing this. I'm using Goland as my IDE, not sure if that has anything to do with it. I'm also on Go 1.21.5.

@loreto
Copy link
Contributor

loreto commented Jan 22, 2024

What line shows up in your go.mod for go.jetpack.io/typeid (just so I can try to reproduce everything exactly)

@ShawnToubeau
Copy link
Author

I've got go.jetpack.io/typeid v1.0.0 in my go.mod

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

No branches or pull requests

3 participants