Handle object parameter for functions better
This commit is contained in:
parent
b743759146
commit
aa2539ad20
|
@ -193,9 +193,12 @@ namespace Upsilon.StandardLibraries
|
||||||
if (typeof(IEnumerable).IsAssignableFrom(type))
|
if (typeof(IEnumerable).IsAssignableFrom(type))
|
||||||
return Type.Table | Type.UserData;
|
return Type.Table | Type.UserData;
|
||||||
|
|
||||||
|
if (type == typeof(object))
|
||||||
|
return Type.Unknown;
|
||||||
|
|
||||||
if (type == typeof(ScriptType))
|
if (type == typeof(ScriptType))
|
||||||
// allows every type
|
// allows every type
|
||||||
return (Type) 255;
|
return Type.Unknown;
|
||||||
return new UndefinedUserDataTypeContainer(Type.UserData, type);
|
return new UndefinedUserDataTypeContainer(Type.UserData, type);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue