Closed MortimerSnerd closed 1 year ago
Thanks, fixed here: https://github.com/aardappel/lobster/commit/91ee725cf5fe49dc59a608f05065dc3f75651cec
It does not automatically reuse *
for *=
, they need to be defined separately, such that *=
can actually overwrite the value rather than allocate a new one.
On commit ec7905ebd7de60c89363e4bb3037252cdef7d629
For a class with user defined
operator*
, the *= operator fails with the following assertion:Assertion failed: false, file C:\src\lobster\dev\src\lobster\codegen.h, line 654
Writing it out as x = x * y works fine.
Repro code: