moonsharp icon indicating copy to clipboard operation
moonsharp copied to clipboard

Generic extension exception and multiple extension methos for single userdata: fixes

Open havietisov opened this issue 8 years ago • 0 comments

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<>

havietisov avatar Mar 08 '16 17:03 havietisov