Skip to content

Commit 3583096

Browse files
additional Const Identity constructor fixes
1 parent ea01734 commit 3583096

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Try.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ macro Try(expr)
115115
quote
116116
try
117117
r = $(esc(expr))
118-
Identity{typeof(r)}(r)
118+
Identity(r)
119119
catch exc
120120
Const(Thrown(exc, Base.catch_stack()))
121121
end
@@ -148,7 +148,7 @@ macro TryCatch(exception, expr)
148148
quote
149149
try
150150
r = $(esc(expr))
151-
Identity{typeof(r)}(r)
151+
Identity(r)
152152
catch exc
153153
if exc isa $(esc(exception))
154154
Const(Thrown(exc, Base.catch_stack()))

0 commit comments

Comments
 (0)