-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
inner function signature using sparams #17487
Conversation
# return (subf(one(T), x * im), subf(unsigned(one(T)))) | ||
#end | ||
#@test local_innersig(Int32(2)) == ((Int32(2), Int32(1), Int32(2)im), (Int32(2), UInt32(1))) | ||
#@test local_innersig(Int64(3)) == ((Int64(3), Int64(1), Int64(3)im), (Int64(3), UInt64(1))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use test_broken then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the function definition lowering comes out wrong, not the test
Re: added and removed milestone -- ignore, was unintentional. |
@JeffBezanson review thoughts? |
`(thunk | ||
(define (type-for-closure-parameterized name P names fields types super) | ||
(let ((n (length P))) | ||
`((thunk |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this should return a list; needing a list of the expression is only an artifact of how this is used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It also doesn't need to return a lambda, just a couple of statements, but lowering handled that wrong
A few minor comments, but looks basically good. |
there is logic present to also handle all locals, but this causes some broken toplevel lowering to fail (notably, some gensym locals are getting pulled into global scope and some toplevel scopes are incorrectly identified as local scope) fix #15068
Interesting crash on 32-bit travis here. |
helped by #17516 probably? |
Should be |
allows an inner function signature to reference sparams of the caller
fix #15068