Sigil
Sigil copied to clipboard
Fixed call of not-yet-existing instance method.
The problem was as follows:
-
Emit<T>.BuildInstanceMethod()
implicitly addsthis
to the list of expected parameters -
Emit<T>.Call<GeneratedMethod>(Emit<GeneratedMethod> method, ...)
also adds implicitthis
- validation fails as it now expects 2 this entries on stack.
Added a test based on Recursive
to ensure this case works.