diff --git a/src/code.jl b/src/code.jl index e2da638b1..23ca867e4 100644 --- a/src/code.jl +++ b/src/code.jl @@ -188,10 +188,6 @@ function toexpr(O, st) end end -function toexpr(O::Tuple, st) - :(($(toexpr.(O, (st,))...),)) -end - # Call elements of vector arguments by their name. @matchable struct DestructuredArgs elems diff --git a/test/code.jl b/test/code.jl index 07c50bcd0..1cf181a78 100644 --- a/test/code.jl +++ b/test/code.jl @@ -183,8 +183,6 @@ nanmath_st.rewrites[:nanmath] = true :(SparseVector(10, $(spvec.nzind), [a]))) test_repr(toexpr(MakeTuple((a, b, a+b))), :((a,b,$(+)(a,b)))) - test_repr(toexpr((a, b, a+b)), - :((a,b,$(+)(a,b)))) @test SpawnFetch{Multithreaded}([()->1,()->2],vcat)|>toexpr|>eval == [1,2] @test @elapsed(SpawnFetch{Multithreaded}([:(()->sleep(2)),