Skip to content

Instantly share code, notes, and snippets.

@skial
Created February 11, 2019 10:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skial/1e351a80f59f1a538d55540dab9218e2 to your computer and use it in GitHub Desktop.
Save skial/1e351a80f59f1a538d55540dab9218e2 to your computer and use it in GitHub Desktop.
-main Main
-js run.js
-dce full
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;
}
}
package ;
import Thing;
class Main {
public static function main() {
var foo:Foo<String> = BOO;
trace( foo );
}
}
package ;
enum Thing {
BOO;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment