Skip to content

Commit f52b42f

Browse files
authored
Add support for abstract function (#1024)
1 parent 09012b8 commit f52b42f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tracing.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Base.@nospecializeinfer function traced_type_inner(
9393
@nospecialize(runtime)
9494
)
9595
# functions are directly returned
96-
if sizeof(T) == 0
96+
if T === Function || sizeof(T) == 0
9797
return T
9898
end
9999

0 commit comments

Comments
 (0)