-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Param match relax #23033
Param match relax #23033
Conversation
Scope can still be made useful in let x: proc = cmp If I disabled datamancer for this PR (again) because after many hours of digging around I cannot fault the compiler for the CI failure. Something is making datamancer's macros pick the wrong type for their import datamancer, seqmath
type
Foo = object
fd: float
let a = [1, 2, 3]
var fm = Foo(fd: 5.2)
let fn = f{ idx("a") > fm.fd } Now that I am convinced that datamancer is the issue here, I am going to keep investigating, but I'll open this PR for review so that we can start scrutinizing it, as it is now. |
I think I fixed datamancer, and I'm going to run the CI on one more commit with a couple of changes that I think will be beneficial |
Sorry, you need to rebase already. |
nim-lang#23063) … type mirroring proc params
…ls again (nim-lang#23074) fixes nim-lang#23051 Before ![image](https://github.com/nim-lang/Nim/assets/43030857/d402a837-281e-4035-8302-500f64dccdb5) After ![image](https://github.com/nim-lang/Nim/assets/43030857/de9a23f1-9e50-4551-b3fd-3311e1de378e)
wait a minute... what the? |
Seems git didn't like what I did there, but it should all be squashed anyway I guess. There is an ugly part of my changes at the end of if best > -1 and result != nil:
# only one valid interpretation found:
markUsed(m.c, arg.info, arg[best].sym)
onUse(arg.info, arg[best].sym)
result = paramTypesMatchAux(m, f, arg[best].typ, arg[best], argOrig) (and some related bits). I kept this code path in there because that's how it was when I got there. It doesn't have to be weird like that if |
Thanks for your hard work on this PR! Hint: mm: orc; opt: speed; options: -d:release |
--------- Co-authored-by: Nikolay Nikolov <nickysn@gmail.com> Co-authored-by: Pylgos <43234674+Pylgos@users.noreply.github.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com> Co-authored-by: Jason Beetham <beefers331@gmail.com> (cherry picked from commit 94f7e96)
#23032