From 3867ae77ead8a9a426ed69de5678d58eb1a29db9 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Fri, 30 Nov 2018 16:51:18 +0100 Subject: [PATCH] Support ScriptType as parameter --- Upsilon/StandardLibraries/StaticScope.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Upsilon/StandardLibraries/StaticScope.cs b/Upsilon/StandardLibraries/StaticScope.cs index 137487d..3cd5b37 100644 --- a/Upsilon/StandardLibraries/StaticScope.cs +++ b/Upsilon/StandardLibraries/StaticScope.cs @@ -90,6 +90,9 @@ namespace Upsilon.StandardLibraries return Type.Table | Type.UserData; if (typeof(ScriptTable).IsAssignableFrom(type)) return Type.Table; + if (type == typeof(ScriptType)) + // allows every type + return (Type) 255; return Type.UserData; } }