Closed ayush1999 closed 5 years ago
>>> vcall(a...) = DataFlow.vertex(DataFlow.Call(), DataFlow.constant.(a)...) >>> a = vcall(:+, 1, 2) >>> b = vcall(:- , 1, 2) >>> c = vcall(:* , 1, 2) >>> d = vcall(:+, a, b, c) >>>d[1:end]
On julia0.6, The output is:
julia> d[1:end] 4-element Array{IVertex,1}: IVertex(+) IVertex(1 + 2) IVertex(1 - 2) IVertex(1 * 2)
But on julia1.0, we get a methoderror:
>>> d[1:end] ERROR: MethodError: no method matching lastindex(::IVertex) Closest candidates are: lastindex(::Core.SimpleVector) at essentials.jl:577 lastindex(::Cmd) at process.jl:837 lastindex(::Base64.Buffer) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Base64/src/buffer.jl:19 ... Stacktrace: [1] top-level scope at none:0
On julia0.6, The output is:
But on julia1.0, we get a methoderror: