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

fix subscript in generics, typeof, lent with bracket #24067

Merged
merged 2 commits into from
Sep 8, 2024

Conversation

metagn
Copy link
Collaborator

@metagn metagn commented Sep 5, 2024

fixes #15959

Another followup of #22029 and #24005, subscript expressions now recognize when their parameters are generic types, then generating tyFromExpr. typeof also now properly sets tfNonConstExpr to make it usable in proc signatures. lent with brackets like lent[T] is also now allowed.

@metagn metagn changed the title fix subscript in generics, errors, lent with bracket fix subscript in generics, typeof, lent with bracket Sep 6, 2024
@Araq
Copy link
Member

Araq commented Sep 6, 2024

Please rebase.

@Araq Araq merged commit ca28c25 into nim-lang:devel Sep 8, 2024
17 of 19 checks passed
Copy link
Contributor

github-actions bot commented Sep 8, 2024

Thanks for your hard work on this PR!
The lines below are statistics of the Nim compiler built from ca28c25

Hint: mm: orc; opt: speed; options: -d:release
174175 lines; 8.341s; 655.215MiB peakmem

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.

in generics, params and return can't call procs in for their type declaration; gives Error: type mismatch
2 participants