Why does the attachment not work in this case?
type TupleBuilder () = static member inline Cons(a,(b,c)) = (a, b, c) static member inline Cons(a,(b,c,d)) = (a, b, c, d) static member inline Cons(a,(b,c,d,e)) = (a, b, c, d, e) let inline cons ht = TupleBuilder.Cons(h,t)
Calling TupleBuilder.Cons gives me the following compiler error
A unique overload for method 'Cons' could not be determined based on type information prior to this program point. A type annotation may be needed. Candidates: static member TupleBuilder.Cons : a:'a0 * ('a1 * 'a2 * 'a3 * 'a4) -> 'a0 * 'a1 * 'a2 * 'a3 * 'a4, static member TupleBuilder.Cons : a:'a0 * ('a1 * 'a2 * 'a3) -> 'a0 * 'a1 * 'a2 * 'a3, static member TupleBuilder.Cons : a:'a0 * ('a1 * 'a2) -> 'a0 * 'a1 * 'a2
source share