Skip to content

Commit

Permalink
XFAIL: Revert bugfix part of "Fix Scan outtype when Initializer is used"
Browse files Browse the repository at this point in the history
This reverts commit 37a2bf2.
  • Loading branch information
tkf committed Jan 10, 2019
1 parent 37a2bf2 commit c19abcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/library.jl
Expand Up @@ -1055,7 +1055,7 @@ end
Scan(f) = Scan(f, nothing)

_lefttype(xf::Scan{<:Any, Nothing}, intype) = typeof(identityof(xf.f, intype))
_lefttype(xf::Scan, ::Any) = inittypeof(xf.init)
_lefttype(xf::Scan{<:Any, T}, _) where {T} = T

# Maybe this is fine:
# outtype(xf::Scan, intype) = Union{_lefttype(xf, intype), intype}
Expand Down

0 comments on commit c19abcc

Please sign in to comment.