Skip to content

Commit 4b54d97

Browse files
committed
Some known_type fixes
1 parent d96edc1 commit 4b54d97

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/parcel_snoopi.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,11 @@ let known_type_cache = IdDict{Tuple{Module,Tuple{Vararg{Symbol}},Symbol},Bool}()
214214
strippedname(tn::Core.TypeName) = Symbol(string(tn.name)[2:end])
215215

216216
T === Union{} && return true
217+
T = Base.unwrap_unionall(T)
217218
if isa(T, Union)
218219
return known_type(mod, T.a) & known_type(mod, T.b)
219220
end
220-
T = Base.unwrap_unionall(T)::DataType
221+
T = T::DataType
221222
tn = T.name
222223
tpath = fullname(tn.module)
223224
key = (mod, tpath, tn.name)

0 commit comments

Comments
 (0)