# Fatal error in type inference (type bound) in 0.7 RC2

**URL:** <https://discourse.julialang.org/t/fatal-error-in-type-inference-type-bound-in-0-7-rc2/12887>\
**Category:** General Usage\
**Created:** [August 4, 2018, 8:51am UTC](https://discourse.julialang.org/t/fatal-error-in-type-inference-type-bound-in-0-7-rc2/12887 "2018-08-04T08:51:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bernhard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bernhard/32/2619_2.png) [@bernhard](https://discourse.julialang.org/u/bernhard)\
**Post date:** [August 4, 2018, 8:51am UTC](https://discourse.julialang.org/t/fatal-error-in-type-inference-type-bound-in-0-7-rc2/12887/1 "2018-08-04T08:51:23Z")

</div>

I am getting the error below since RC2.  
The code ran fine in 0.7beta if I recall correctly.

Any ideas why this happens?  
It seems related to a type union of sseSplit and mseSplit.

here is an MWE [DecisionTrees.jl/mwe\_fatal\_error\_type\_inference.jl at master · kafisatz/DecisionTrees.jl · GitHub](https://github.com/kafisatz/DecisionTrees.jl/blob/master/testing/mwe_fatal_error_type_inference.jl)

I found some closed issues on GitHub on the topic. But could not figure out how to fix this.

```julia
ERROR: fatal error in type inference (type bound)
Stacktrace:
 [1] _typed_hcat(::Type{Float64}, ::Tuple{Array{Int64,1},Array{Int64,1},Array{Float64,1},Array{Float64,1},Array{Float64,1},Array{Float64,1},Array{Float64,1},Array{Float64,1}}) at .\abstractarray.jl:1255
 [2] typed_hcat at .\abstractarray.jl:1243 [inlined]
 [3] hcat at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v0.7\SparseArrays\src\sparsevector.jl:1063 [inlined]
 [4] macro expansion at .\logging.jl:307 [inlined]
 [5] macro expansion at .\util.jl:156 [inlined]
 [6] macro expansion at C:\Users\bernhard.konig\Documents\ASync\home\Code\Julia\DecisionTrees.jl\src\boosting.jl:89 [inlined]
 [7] macro expansion at .\util.jl:156 [inlined]
 [8] macro expansion at C:\Users\bernhard.konig\Documents\ASync\home\Code\Julia\DecisionTrees.jl\src\helper_functions.jl:1469 [inlined]
 [9] boosted_tree(::DecisionTrees.DTMTable, ::ModelSettings) at C:\Users\bernhard.konig\Documents\ASync\home\Code\Julia\DecisionTrees.jl\src\boosting.jl:82
 [10] run_model_actual(::DecisionTrees.DTMTable, ::ModelSettings, ::String) at C:\Users\bernhard.konig\Documents\ASync\home\Code\Julia\DecisionTrees.jl\src\runmodel.jl:467
 [11] #dtm#110 at C:\Users\bernhard.konig\Documents\ASync\home\Code\Julia\DecisionTrees.jl\src\runmodel.jl:798 [inlined]
 [12] dtm(::DecisionTrees.DTMTable, ::ModelSettings) at C:\Users\bernhard.konig\Documents\ASync\home\Code\Julia\DecisionTrees.jl\src\runmodel.jl:798
 [13] top-level scope at none:0

```

---

<div class="post-metadata">

**Author:** ![Keno](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/keno/32/285_2.png) [@Keno](https://discourse.julialang.org/u/Keno)\
**Post date:** [August 4, 2018, 3:21pm UTC](https://discourse.julialang.org/t/fatal-error-in-type-inference-type-bound-in-0-7-rc2/12887/2 "2018-08-04T15:21:04Z")

</div>

I was able to reproduce this. I’ll file an issue for you.
