Created
June 6, 2013 22:28
-
-
Save cogumbreiro/5725520 to your computer and use it in GitHub Desktop.
This code breaks the compiler for X10 2.3.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class AbstractSettable[T] implements Settable[T] { | |
public operator this()=(value:T) { | |
set(value); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface Settable[T] { | |
operator this()=(value:T):void; | |
def set(value:T):void; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SettableImpl[T] extends AbstractSettable[T] { | |
private var data:T; | |
public def this(value:T) { | |
this.data = value; | |
} | |
public def set(value:T) { | |
data = value; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment