Created
February 11, 2019 10:14
-
-
Save skial/1e351a80f59f1a538d55540dab9218e2 to your computer and use it in GitHub Desktop.
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
-main Main | |
-js run.js | |
-dce full |
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
package ; | |
#if (eval || macro) | |
import haxe.macro.Expr; | |
#end | |
abstract Foo<T>(T) { | |
@:from public static macro function fromThing<T>(e:ExprOf<Thing>):ExprOf<Foo<T>> { | |
return macro null; | |
} | |
} |
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
package ; | |
import Thing; | |
class Main { | |
public static function main() { | |
var foo:Foo<String> = BOO; | |
trace( foo ); | |
} | |
} |
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
package ; | |
enum Thing { | |
BOO; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment