Skip to content

Commit

Permalink
Add a test for issue #17
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Jan 28, 2019
1 parent 995d7f8 commit ffb0045
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/stepping.jl
Original file line number Diff line number Diff line change
Expand Up @@ -199,3 +199,13 @@ try
catch e
@assert isa(e, ErrorException)
end

# Issue #17
struct B{T} end
function (::B)(y)
x = 42*y
return x + y
end

B_inst = B{Int}()
step_through(ASTInterpreter2.enter_call_expr(:($(B_inst)(10))))

0 comments on commit ffb0045

Please sign in to comment.