Chia-Network / clvm_tools_rs_fork

Modern Chialisp compiler implemented in Rust
Apache License 2.0
3 stars 9 forks source link

problem with assign & multiply-used inline function (nightly) #160

Closed richardkiss closed 1 year ago

richardkiss commented 1 year ago
(mod (POINT)
  (include *standard-cl-21*)
  (defun-inline no-op (V) V)
  (assign
    TU 100
    TU1 (no-op TU)
    TU2 (no-op TU)
    0
  )
)
% run inline-assign.clsp 
inline-assign.clsp(7):10-inline-assign.clsp(7):15: recursive call to inline function letbinding_$_25%                                                                   
prozacchiwawa commented 1 year ago

should be fixed in nightly, added test. base pr: https://github.com/Chia-Network/clvm_tools_rs/pull/161