Enums can safely be used as Dictionary keys, and should therefore pass the isSimple() test.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5581 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Nathan Curtis
2008-12-06 00:39:05 +00:00
parent 92713ee4b8
commit 34d2833580
+2 -1
View File
@@ -316,7 +316,8 @@ public class HashMap
*/
protected function isSimple (key :Object) :Boolean
{
return (key == null) || (key is String) || (key is Number) || (key is Boolean);
return (key == null) || (key is String) || (key is Number) || (key is Boolean) ||
(key is Enum);
}
/**