aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorFlavian Kaufmann <flavian@flaviankaufmann.ch>2025-05-26 09:33:05 +0200
committerFlavian Kaufmann <flavian@flaviankaufmann.ch>2025-05-26 09:33:05 +0200
commit041fcfd0b17e7a6f654fc155108847aac8293144 (patch)
tree2e2330f73c2911f7f7c03cd38c8370a68a6dc1d0 /examples
parent49e4ca2fa0c6de8f50d3f739ce46e8d4c7b75da8 (diff)
downloadimp-041fcfd0b17e7a6f654fc155108847aac8293144.tar.gz
imp-041fcfd0b17e7a6f654fc155108847aac8293144.zip
[feature] only allow procedure declarations on top level
Diffstat (limited to 'examples')
-rw-r--r--examples/gcd.imp4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/gcd.imp b/examples/gcd.imp
index 5ab0bbf..530f347 100644
--- a/examples/gcd.imp
+++ b/examples/gcd.imp
@@ -11,6 +11,4 @@ procedure gcd(a, b; r) begin
end;
end;
-x := 48;
-y := 18;
-gcd(x, y; result);
+gcd(48, 18; result);