mirror of
https://github.com/anoma/juvix.git
synced 2024-12-12 04:43:18 +03:00
3ed30dd210
- Closes #2033 - Based on #2032
15 lines
241 B
Plaintext
15 lines
241 B
Plaintext
-- let hoisting
|
|
|
|
\(a : Int) \(b : Int)
|
|
let x : Int :=
|
|
let y : Int := b + a in
|
|
let z : Int := b + a in
|
|
b + a + y + z
|
|
in
|
|
let x2 : Int :=
|
|
let y2 : Int := b + a + x in
|
|
let z2 : Int := b + a in
|
|
b + a + y2 + z2
|
|
in
|
|
x + a + b + x2
|