Handle object parameter for functions better

This commit is contained in:
Deukhoofd 2019-01-22 20:35:41 +01:00
parent b743759146
commit aa2539ad20
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 4 additions and 1 deletions

View File

@ -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);
}
}