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:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user