Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: X10 1.7 - JVM hosted
-
Fix Version/s: X10 1.7.1 - JVM Hosted
-
Component/s: X10 Compiler: Front-end
-
Labels:None
-
Number of attachments :
Description
public class C implements (int)=>int { public def apply(i:int) = 0; }
C is not abstract and does not override
abstract method apply(java.lang.Integer) in x10.core.fun.Fun_0_1
public class Bug18
^
1 error
This version exhibits an additional problem
class P {} class I implements (P)=>int { incomplete public def apply(P): int; }apply(P) in InitM cannot implement apply(T1) in
x10.core.fun.Fun_0_1; attempting to use incompatible return type
found : int
required: java.lang.Integer
apply(
^
2 errors