Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: X10 2.1.2
-
Fix Version/s: X10 2.3.2
-
Component/s: X10 Compiler: Front-end Constraints
-
Labels:None
-
Environment:SVN Revision: 20648
-
Testcase included:yes
-
Number of attachments :
Description
Compiling
import x10.util.Ordered; public class LessIsMore{ static def doIt[T](a: T{T <: Ordered[T]}) { return a < a; } }
yields
LessIsMore.x10:4: No valid method call found for call in given type. Call: operator<(T, T) Type: x10.lang.Any
Can you explain what this error message means? I thought that T<:Ordered[T] meant "T implements Ordered[T]"
and therefore (since "<" is in that interface) I ought to be able to use it.