Skip to content
New issue

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

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

Already on GitHub? # to your account

Support for generics in the compiler #2376

Open
roman-khimov opened this issue Feb 28, 2022 · 1 comment
Open

Support for generics in the compiler #2376

roman-khimov opened this issue Feb 28, 2022 · 1 comment
Labels
feature Completely new functionality go Go language related I2 Regular impact S2 Regular significance U4 Nothing urgent

Comments

@roman-khimov
Copy link
Member

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.

@roman-khimov roman-khimov added the go Go language related label Feb 28, 2022
@roman-khimov
Copy link
Member Author

roman-khimov commented 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.

AnnaShaleva added a commit that referenced this issue Aug 18, 2023
Fix panic described in #3040. Ref. #2376.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
AnnaShaleva added a commit that referenced this issue Aug 18, 2023
Either non-pointer or pointer, both cases are disallowed to be generic.
Need to be reverted and properly handled within the scope of #2376.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
AnnaShaleva added a commit that referenced this issue Aug 18, 2023
Need to be reverted and properly handled within the scope of #2376.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
AnnaShaleva added a commit that referenced this issue Aug 18, 2023
Need to be reverted and properly handled within the scope of #2376.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
@roman-khimov roman-khimov added feature Completely new functionality I2 Regular impact U4 Nothing urgent S2 Regular significance labels Dec 21, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
feature Completely new functionality go Go language related I2 Regular impact S2 Regular significance U4 Nothing urgent
Projects
None yet
Development

No branches or pull requests

1 participant