moonsharp
moonsharp copied to clipboard
Generic extension exception and multiple extension methos for single userdata: fixes
In case we called some extension method in context of some userdata, we are not allowed to call any other because they will not be indexed (always nil)
example : userdata.ExtMethod1() --called fine userdata.ExtMethod2() --null indexer!
and, if we call ExtMethod2 first, ExtMethod1 will be nil
ExtensionMethodsRegistry.GetGenericMatch trying to create GetGenericTypeDefinition of type parameter. Example: TweenSettingsExtensions.SetEase<T>(this T t, Ease ease) //causes exception being thrown, because we are not allowed to create T<>