Skip to content

Instantly share code, notes, and snippets.

@fujidig
Created March 24, 2014 10:27
Show Gist options
  • Save fujidig/9737791 to your computer and use it in GitHub Desktop.
Save fujidig/9737791 to your computer and use it in GitHub Desktop.
class T {
public static function main() {
var map = new Map<E,Int>();
map[E.e(new A())] = 1;
map[E.e(new A())] = 2;
map[E.e(new A())] = 3;
map[E.e(new A())] = 4;
for (k in map.keys()) {
trace('${map[k]}');
}
}
}
class A { public function new() {} }
enum E {
e(a:A);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment