The following imperative array doesn't type check unexpectedly: [["uffix"], ["ffix"], ["fix"], ["ix"], ["x"], []]
The problem is the empty array, which has type [a]. For the given example a should unify to String, but the homogeneous check doesn't conduct unification.
The following imperative array doesn't type check unexpectedly:
[["uffix"], ["ffix"], ["fix"], ["ix"], ["x"], []]
The problem is the empty array, which has type
[a]
. For the given examplea
should unify toString
, but the homogeneous check doesn't conduct unification.