Skip to content

Commit 8f9f5f1

Browse files
authored
Merge pull request #543 from JuliaSymbolics/revert-542-return_tuples
Revert "Included dispatch to toexpr that creates Tuples correctly"
2 parents e4812a3 + 9cc8fbd commit 8f9f5f1

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

src/code.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,6 @@ function toexpr(O, st)
188188
end
189189
end
190190

191-
function toexpr(O::Tuple, st)
192-
:(($(toexpr.(O, (st,))...),))
193-
end
194-
195191
# Call elements of vector arguments by their name.
196192
@matchable struct DestructuredArgs
197193
elems

test/code.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,6 @@ nanmath_st.rewrites[:nanmath] = true
183183
:(SparseVector(10, $(spvec.nzind), [a])))
184184
test_repr(toexpr(MakeTuple((a, b, a+b))),
185185
:((a,b,$(+)(a,b))))
186-
test_repr(toexpr((a, b, a+b)),
187-
:((a,b,$(+)(a,b))))
188186

189187
@test SpawnFetch{Multithreaded}([()->1,()->2],vcat)|>toexpr|>eval == [1,2]
190188
@test @elapsed(SpawnFetch{Multithreaded}([:(()->sleep(2)),

0 commit comments

Comments
 (0)