Skip to content

Conversation

@Eliyaan
Copy link
Member

@Eliyaan Eliyaan commented Jan 7, 2026

Introduces a new WIP stage for solving generics.
Half of the tests from v -new-generic-solver test vlib/v/tests/generics/ are passing: 128 failed, 131 passed, 259 total

The styp and cc_type implementations (and some other code snippets related to solving generics) are taken from cgen but are incomplete for the moment.

The current logic for generics is: when encoutering a FnDecl statement, clone the AST for each concrete type.

@medvednikov
Copy link
Member

Amazing work!

Copy link
Member

@spytheman spytheman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @Eliyaan 🙇🏻 .

@spytheman spytheman merged commit 6e6b950 into vlang:master Jan 7, 2026
82 checks passed
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

Successfully merging this pull request may close these issues.

3 participants