ligo/src/test/contracts/attributes.ligo

20 lines
450 B
Plaintext
Raw Normal View History

const x : int = 1; attributes ["inline"]
2020-01-16 19:36:04 +00:00
function foo (const a : int) : int is
block {
const test : int = 2 + a;
attributes ["inline"];
} with test;
2020-01-16 19:36:04 +00:00
attributes ["inline"];
const y : int = 1; attributes ["inline"; "other"]
2020-01-16 19:36:04 +00:00
function bar (const b : int) : int is
block {
function test (const z : int) : int is
block {
const r : int = 2 + b + z
} with r;
attributes ["inline"; "foo"; "bar"]
} with test (b)