class Main { static function main() { test(std.Type.ValueType); } static function test(e:Enum) { trace(e.getName()); } }