Skip to content

Testing framework: fix overriding variables

E. Rivas requested to merge er433/fix/testing-framework-override into dev

This MR fixes a bug on how environments are reconstructed for functions:

let x = 2
let x = 1

let f (y : int) =
  y * x

let test =
  let v = Test.run f 4 in
  Test.log v

Testing this file was printing 8 instead of 4.

  • has a changelog entry
Edited by E. Rivas

Merge request reports