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

Support Go 1.18 #1363

Closed
olavfosse opened this issue Mar 27, 2022 · 1 comment · Fixed by #1428
Closed

Support Go 1.18 #1363

olavfosse opened this issue Mar 27, 2022 · 1 comment · Fixed by #1428
Labels
enhancement New feature or request

Comments

@olavfosse
Copy link

Proposal

There's not much to add to the title... This project looks really cool and I'd like to use it with the latest Go 1.18.

Background

foo

Workarounds

bar

@mvertes
Copy link
Member

mvertes commented Mar 28, 2022

Hello, for your information, the support of Go generics in yaegi is not ready yet. When ready, it should be made available in the main branch after the release of go1.19, for compatibility reasons, as we support the 2 last Go versions and go1.17.x is incompatible with generics.

@mvertes mvertes added the enhancement New feature or request label Jun 14, 2022
traefiker pushed a commit that referenced this issue Aug 3, 2022
Status:
* [x] parsing code with generics
* [x] instantiate generics from concrete types
* [x] automatic type inference
* [x] support of generic recursive types 
* [x] support of generic methods
* [x] support of generic receivers in methods
* [x] support of multiple type parameters
* [x] support of generic constraints
* [x] tests (see _test/gen*.go)

Fixes #1363.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants