Skip to content

JsLIGO: keep attributes in initializer

E. Rivas requested to merge er433/fix/jsligo-attribute-let into dev

Attributes for inner let definitions are lost:

let bar = (b : int) : int => {
  // @inline @foo @bar
  let test = (z : int):int => 2 + b + z;

gets to

const bar = lambda (b) return let test = lambda (z) return ADD(ADD(2 ,b) , z) in (test)@(b)

i.e. test does not get the inline attribute. This MR is a simple fix for that.

  • has a changelog entry
Edited by E. Rivas

Merge request reports