mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-03-28 15:01:20 +00:00
17 lines
374 B
Plaintext
17 lines
374 B
Plaintext
export lng193Bug
|
|
|
|
func getClosure(arg: u16, peer: string) -> u16 -> u16:
|
|
on peer:
|
|
closure = (x: u16) -> u16:
|
|
<- arg + x
|
|
<- closure
|
|
|
|
func lng193Bug(peer: string, closurePeer: string) -> u16:
|
|
on peer:
|
|
c = getClosure(42, closurePeer)
|
|
b = c
|
|
a = b
|
|
res1 = a(1) + a(2) -- Call two times for
|
|
res2 = b(3) + b(4) -- bug to appear
|
|
<- res1 + res2
|