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