Skip to content
Snippets Groups Projects
Commit 0f9303ec authored by Pascal Raymond's avatar Pascal Raymond
Browse files

..

parent a8f6a140
No related branches found
No related tags found
No related merge requests found
node main(x,y: bool^42) returns (o: bool^42);
let
o = map<<or, 42>>(x,y);
tel
-- ok
node ma_macro<<const i : int>>(x: int) returns (y: int);
let
y = i + x;
tel
node main = ma_macro<<32>>;
-- KO, mais pas où il faudrait ...
node ma_macro<<const i : int>>(x: int) returns (y: int);
let
y = i + x;
tel
-- n.b. ko à l'utilisation uniquement
node main = ma_macro<<32.0>>;
-- KO
node ma_macro<<const i : int>>(x: int) returns (y: int);
let
y = i + x;
tel
--*** Bad static argument nature, a constant was expected
node main = ma_macro<<+>>;
-- DEVRAIT ETRE KO !
-- mais aucune verif dans la verfi du 30/07/12
node ma_macro<<const i : real>>(x: int) returns (y: int);
let
y = i + x;
tel
node main = ma_macro<<32>>;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment