Skip to content

Commit f39b9d2

Browse files
authored
Merge pull request #276 from Liozou/master
Accept Module in FakeTypeName
2 parents cae13e6 + 30b78d2 commit f39b9d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/faketypes.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ function FakeTypeName(@nospecialize(x); justname=false)
3939
FakeTypeVar(x)
4040
elseif x isa Core.TypeofBottom
4141
FakeTypeofBottom()
42+
elseif x isa Module
43+
VarRef(x)
4244
else
4345
error((x, typeof(x)))
4446
end

0 commit comments

Comments
 (0)