Skip to content

Commit

Permalink
Fix for Cxx.jl issue 463
Browse files Browse the repository at this point in the history
  • Loading branch information
ethomag committed Apr 28, 2020
1 parent 7a9524e commit d10b2c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/typetranslation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ function cpptype(C,::Type{T}) where T
InverseMappedTypes[MappedTypes[T]] = T
# For callable julia types, also add an operator() method to the anonymous
# class
if !isempty(T.name.mt)
if !isempty(T.name.mt) && isa(T.name.mt.defs, Core.TypeMapEntry)
linfo = T.name.mt.defs.func
sig = T.name.mt.defs.sig
nargt = length(sig.parameters)-1
Expand Down

0 comments on commit d10b2c9

Please sign in to comment.