Skip to content

Conversation

@bung87
Copy link
Collaborator

@bung87 bung87 commented Sep 12, 2022

fix #20283
fix #19682

Note: I can add a extro param to resolveOverloads since this is only one case need to take care of, so that avoiding if f.kind == nkIdent and f.ident.s == "case":

edit: now I change to use a flag.
when I use case [] , do nim check inside semStmtList will cause nil access, so I add a condition if x == nil. and the test file produce duplicated error, no idea so far.

@Varriount Varriount requested a review from Araq September 12, 2022 17:38
@Varriount Varriount added the Requires Araq To Merge PR should only be merged by Araq label Sep 12, 2022
@bung87 bung87 force-pushed the fix20283 branch 2 times, most recently from a4f8828 to 1896e86 Compare September 25, 2022 19:08
@bung87
Copy link
Collaborator Author

bung87 commented Nov 1, 2022

@Araq merge this pls, just a tiny patch

@Araq Araq merged commit eec1543 into nim-lang:devel Nov 1, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Nov 1, 2022

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

Hint: mm: orc; opt: speed; options: -d:release
164614 lines; 8.096s; 613.961MiB peakmem

capocasa pushed a commit to capocasa/Nim that referenced this pull request Mar 31, 2023
…im-lang#20339) * fix semcase on tySequence and tyObject nim-lang#20283 nim-lang#19682 * use better arg name * avoiding returns nil use errorNode instead, clean code * use efNoDiagnostics flag * remove tests/errmsgs/t19682.nim * combine 2 test cases to one file
narimiran pushed a commit that referenced this pull request May 12, 2023
* fix semcase on tySequence and tyObject #20283 #19682 * use better arg name * avoiding returns nil use errorNode instead, clean code * use efNoDiagnostics flag * remove tests/errmsgs/t19682.nim * combine 2 test cases to one file (cherry picked from commit eec1543)
narimiran pushed a commit that referenced this pull request May 12, 2023
* fix semcase on tySequence and tyObject #20283 #19682 * use better arg name * avoiding returns nil use errorNode instead, clean code * use efNoDiagnostics flag * remove tests/errmsgs/t19682.nim * combine 2 test cases to one file (cherry picked from commit eec1543)
bung87 added a commit to bung87/Nim that referenced this pull request Jul 29, 2023
…im-lang#20339) * fix semcase on tySequence and tyObject nim-lang#20283 nim-lang#19682 * use better arg name * avoiding returns nil use errorNode instead, clean code * use efNoDiagnostics flag * remove tests/errmsgs/t19682.nim * combine 2 test cases to one file
@bung87 bung87 deleted the fix20283 branch August 29, 2023 16:23
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

3 participants