savi-lang / savi

A fast language for programmers who are passionate about their craft.
BSD 3-Clause "New" or "Revised" License
155 stars 12 forks source link

Fix a code generation bug for struct receivers. #375

Closed jemc closed 1 year ago

jemc commented 1 year ago

Prior to this commit, when calling a method on a value that could be either a struct or a class (both of which have that method), then invalid LLVM IR could be generated.

This was causing failures in the HTTPServer example code in CI.

This commit fixes that bug and adds a regression test.