ligo/src/test/contracts/attributes.ligo

20 lines
449 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
begin
const test : int = 2 + a;
attributes ["inline"];
end 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
begin
function test (const z : int) : int is
begin
const r : int = 2 + b + z
end with r;
attributes ["inline"; "foo"; "bar"]
end with test(b)