ligo/src/test/contracts/attributes.mligo

11 lines
229 B
Plaintext
Raw Normal View History

2020-01-16 19:36:04 +00:00
let x = 1 [@@inline]
let foo (a: int): int =
(let test = 2 + a [@@inline] in test) [@@inline]
2020-01-16 19:36:04 +00:00
let y = 1 [@@inline][@@other]
let bar (b: int): int =
let test = fun (z: int) -> 2 + b + z [@@inline][@@foo][@@bar]
in test b