diff --git a/Upsilon/StandardLibraries/StaticScope.cs b/Upsilon/StandardLibraries/StaticScope.cs index 93f38bd..88de4cc 100644 --- a/Upsilon/StandardLibraries/StaticScope.cs +++ b/Upsilon/StandardLibraries/StaticScope.cs @@ -193,9 +193,12 @@ namespace Upsilon.StandardLibraries if (typeof(IEnumerable).IsAssignableFrom(type)) return Type.Table | Type.UserData; + if (type == typeof(object)) + return Type.Unknown; + if (type == typeof(ScriptType)) // allows every type - return (Type) 255; + return Type.Unknown; return new UndefinedUserDataTypeContainer(Type.UserData, type); } }