Skip to content

Commit

Permalink
nospecialize InnerType
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Jan 20, 2019
1 parent 307fabb commit 1235cab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core.jl
Expand Up @@ -170,7 +170,9 @@ InType(::T) where T = InType(T)
InType(::Type{<:AbstractReduction{intype}}) where {intype} = intype
InType(T::Type) = throw(MethodError(InType, (T,)))

@nospecialize
InnerType(::Type{<:AbstractReduction{<:Any, T}}) where T = T
@specialize

Setfield.constructor_of(::Type{T}) where {T <: AbstractReduction} = T

Expand Down

0 comments on commit 1235cab

Please sign in to comment.