transpile: Handle InitList correctly for all scalar types#1697
transpile: Handle InitList correctly for all scalar types#1697Rua wants to merge 3 commits intoimmunant:kkysen/transpile-snapshots-expect_unresolved_importfrom
InitList correctly for all scalar types#1697Conversation
kkysen
left a comment
There was a problem hiding this comment.
LGTM, too, but could we also add a snapshot test here?
|
I want to include |
|
I don't think that will work here. Init lists for many of these types were simply not implemented before this PR, so it would just not transpile. |
Ah, okay, then never mind then. Simple snapshot test after will be good. |
880db6a to
d105e9e
Compare
b2588a7 to
fb74faa
Compare
ef36fef to
06b9059
Compare
kkysen
left a comment
There was a problem hiding this comment.
It seems that empty initializer list initialization of scalars was only added in C23, which Clang 15 doesn't support. Let me think of a solution.
…lists Empty initializer lists for scalars is only supported in C23/clang 17, so we condition the tests on that.
|
I think you had the right idea? I changed it a bit and now it works. |
double(Init list not implemented for Double) #1691.