Support for generics in the compiler #870

Open
opened 2025-12-28 17:14:30 +00:00 by sami · 1 comment
Owner

Originally created by @roman-khimov on GitHub (Feb 28, 2022).

I doubt it's very much useful for contracts and it only works with 1.18+ that has appropriate data in the AST, but we can consider it in some future.

Originally created by @roman-khimov on GitHub (Feb 28, 2022). I doubt it's very much useful for contracts and it only works with 1.18+ that has appropriate data in the AST, but we can consider it in some future.
Author
Owner

@roman-khimov commented on GitHub (Nov 11, 2022):

There is a place where they can be very useful to give additional type hints --- iterators returned from public methods. Currently an iterator is an iterator and it can have any kind of element inside, but if it'd be an Iterator[type] that'd be a different story. Refs. #2767 and #2768.

@roman-khimov commented on GitHub (Nov 11, 2022): There is a place where they can be _very_ useful to give additional type hints --- iterators returned from public methods. Currently an iterator is an iterator and it can have any kind of element inside, but if it'd be an `Iterator[type]` that'd be a different story. Refs. #2767 and #2768.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neo-go#870
No description provided.