Removed now deprecated behaviour where enums are always created in the static scope by default
This commit is contained in:
parent
78779588d4
commit
8829df0ba3
|
@ -34,11 +34,6 @@ namespace Upsilon.BaseTypes.UserData
|
|||
{
|
||||
var name = attr.Name.ToLowerInvariant();
|
||||
LoadType(type, name);
|
||||
if (type.IsEnum)
|
||||
{
|
||||
var def = Activator.CreateInstance(type);
|
||||
StaticScope.RegisterStaticVariable(attr.Name, def);
|
||||
}
|
||||
}
|
||||
|
||||
var createStaticAttribute =
|
||||
|
|
Loading…
Reference in New Issue