Last active
August 29, 2015 14:02
-
-
Save fponticelli/ea2c106923e1710724eb to your computer and use it in GitHub Desktop.
new haxe?
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
class Sample<T>(value : T) { | |
trace(value) | |
def toString = 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
class Sample<T> { | |
public function new(value : T) { | |
this.value = value; | |
trace(value); | |
} | |
public function toString() { | |
return value; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment