summaryrefslogtreecommitdiff
path: root/tests/typ/control/while.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-03-03 17:53:40 +0100
committerLaurenz <laurmaedje@gmail.com>2021-03-03 17:53:40 +0100
commitc94a18833f23d2b57de1b87971458fd54b56d088 (patch)
tree9e1ed55cfca15aef6d39ced50a3a5b14d2800aae /tests/typ/control/while.typ
parent4d90a066f197264341eff6bf67e8c06cae434eb4 (diff)
Closures and function definitions 🚀
Supports: - Closure syntax: `(x, y) => z` - Shorthand for a single argument: `x => y` - Function syntax: `let f(x) = y` - Capturing of variables from the environment - Error messages for too few / many passed arguments Does not support: - Named arguments - Variadic arguments with `..`
Diffstat (limited to 'tests/typ/control/while.typ')
-rw-r--r--tests/typ/control/while.typ3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/typ/control/while.typ b/tests/typ/control/while.typ
index 7ad70372..acf7951e 100644
--- a/tests/typ/control/while.typ
+++ b/tests/typ/control/while.typ
@@ -26,9 +26,6 @@
#test(type(while false []), "template")
---
-// Error: 14-19 unknown variable
-#let error = error
-
// Condition must be boolean.
// Error: 8-14 expected boolean, found template
#while [nope] [nope]