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 bugs with dot & call operators [backport] #20931

Merged
merged 8 commits into from
Nov 28, 2022

Conversation

metagn
Copy link
Collaborator

@metagn metagn commented Nov 26, 2022

fixes #13063, fixes #7777, fixes #6981, fixes #9831

"Wrong" behavior of newSeq[int]-type calls fixed as well, discovered because of these issues, they should not go through nfExprCall

@metagn metagn changed the title better error messages for dot operators [backport] better error messages for dot & call operators [backport] Nov 26, 2022
@metagn metagn changed the title better error messages for dot & call operators [backport] fix error messages with dot & call operators [backport] Nov 27, 2022
@metagn
Copy link
Collaborator Author

metagn commented Nov 27, 2022

Can someone explain to me what the nimsuggest tests mean? I can't find documentation of it anywhere. At least I can guess what change caused the test to change (semExpr -> semExprWithType in semcall.explicitGenericInstantiation) but I have absolutely no idea if it matters.

@metagn
Copy link
Collaborator Author

metagn commented Nov 27, 2022

Ok, so from what I understand in that test, there is no duplicate highlighting of the generic type now, which I'm assuming is not a problem, so I'll just adapt the test. Correct me if I'm wrong.

@metagn metagn changed the title fix error messages with dot & call operators [backport] fix bugs with dot & call operators [backport] Nov 28, 2022
@Varriount Varriount requested a review from Araq November 28, 2022 18:31
@Varriount Varriount added the Requires Araq To Merge PR should only be merged by Araq label Nov 28, 2022
@Araq Araq merged commit 555c5ed into nim-lang:devel Nov 28, 2022
@github-actions
Copy link
Contributor

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

Hint: mm: orc; opt: speed; options: -d:release
165259 lines; 9.744s; 614.418MiB peakmem

narimiran pushed a commit that referenced this pull request Nov 30, 2022
* better error messages for dot operators [backport]

fixes #13063

* also fixes #7777

* fix #6981 and #9831 too

* fix

* minor improvement

* sus test fixes

* make test multiplatform lol

* fix nimsuggest test, extra improvements

(cherry picked from commit 555c5ed)
survivorm pushed a commit to survivorm/Nim that referenced this pull request Feb 28, 2023
* better error messages for dot operators [backport]

fixes nim-lang#13063

* also fixes nim-lang#7777

* fix nim-lang#6981 and nim-lang#9831 too

* fix

* minor improvement

* sus test fixes

* make test multiplatform lol

* fix nimsuggest test, extra improvements
capocasa pushed a commit to capocasa/Nim that referenced this pull request Mar 31, 2023
* better error messages for dot operators [backport]

fixes nim-lang#13063

* also fixes nim-lang#7777

* fix nim-lang#6981 and nim-lang#9831 too

* fix

* minor improvement

* sus test fixes

* make test multiplatform lol

* fix nimsuggest test, extra improvements
bung87 pushed a commit to bung87/Nim that referenced this pull request Jul 29, 2023
* better error messages for dot operators [backport]

fixes nim-lang#13063

* also fixes nim-lang#7777

* fix nim-lang#6981 and nim-lang#9831 too

* fix

* minor improvement

* sus test fixes

* make test multiplatform lol

* fix nimsuggest test, extra improvements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Requires Araq To Merge PR should only be merged by Araq
Projects
None yet
3 participants