Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 0.8
-
Fix Version/s: 0.8.1
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
It seems boo cannot resolve generics when there are more than one instance of the generic type. For example, FSharp defines a lot of Tuples, which are simply Tuple<T1>, Tuple<T1,T2>, ...., Tuple<T1,T2,...T7>. Trying to use a Tuple of the second order gives the following:
import Microsoft.FSharp.Core from fslib.dll
t = Tuple[of int,int,int]()
ERROR: Ambiguous reference 'Tuple': Microsoft.FSharp.Core.Tuple`7, Microsoft.FSharp.Core.Tuple`6, Microsoft.FSharp.Core.Tuple`5, Microsoft.FSharp.Core.Tuple`4, Microsoft.FSharp.Core.Tuple`3, Microsoft.FSharp.Core.Tuple`2.
ERROR: 'Microsoft.FSharp.Core.Tuple`7' is not a generic definition.
I also tried a seventh order Tuple to see if Tuple`7 would work, but it didnt.
testcase without f# dependency :
{{
class Test of T:
pass
class Test[of T,U]:
pass
class Test[of T,U,V]:
pass
t = Test[of int,int]()
}}