Inner parametric type constructor not defined error

Inner constructor defined in such a way, that you need to use following construction

newInt2{Int, String}(10, "a")

But you do not need inner constructor at all, you can define usual outer constructor

newInt2(u::U,v::V) where {U,V} = newInt2(u,v, V)
1 Like