Skip to content
This repository was archived by the owner on Mar 10, 2021. It is now read-only.

Commit dbf706a

Browse files
committed
ignore CF
1 parent 3f3ff10 commit dbf706a

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/TypedCodeUtils.jl

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ function lookthrough(f, c)
7272
end
7373
return f(c)
7474
end
75+
return false
7576
end
7677

7778
##

test/runtests.jl

+13
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,16 @@ ref = reflect(f, Tuple{Int, Int}, params=params)
3737
calls = cthulhu(ref)
3838
nextrefs = collect(reflect(c) for c in calls if TypedCodeUtils.canreflect(c))
3939

40+
function h(x)
41+
if x >= 2
42+
return x ^ 2
43+
else
44+
return x + 2
45+
end
46+
end
47+
48+
params = TypedCodeUtils.current_params()
49+
ref = reflect(h, Tuple{Int}, params=params)
50+
calls = cthulhu(ref)
51+
nextrefs = collect(reflect(c) for c in calls if TypedCodeUtils.canreflect(c))
52+

0 commit comments

Comments
 (0)