Sigil icon indicating copy to clipboard operation
Sigil copied to clipboard

Fixed call of not-yet-existing instance method.

Open den-mentiei opened this issue 4 years ago • 0 comments

The problem was as follows:

  • Emit<T>.BuildInstanceMethod() implicitly adds this to the list of expected parameters
  • Emit<T>.Call<GeneratedMethod>(Emit<GeneratedMethod> method, ...) also adds implicit this
  • validation fails as it now expects 2 this entries on stack.

Added a test based on Recursive to ensure this case works.

den-mentiei avatar Dec 11 '20 17:12 den-mentiei