aboutsummaryrefslogtreecommitdiff
path: root/lib/syntax
diff options
context:
space:
mode:
authorChimrod <>2024-01-15 11:12:36 +0100
committerChimrod <>2024-01-15 11:12:36 +0100
commit289f1c91a11bd69a9a1239cba5e6390f6d1e592e (patch)
treefbf343ec98c5b0c4385ce278f95d71c72a80cf34 /lib/syntax
parentc48740e598132261e20260678ff2feb3b398d913 (diff)
Do not raise type error on dyneval function
Diffstat (limited to 'lib/syntax')
-rw-r--r--lib/syntax/get_type.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/syntax/get_type.ml b/lib/syntax/get_type.ml
index a9ec48d..4dee125 100644
--- a/lib/syntax/get_type.ml
+++ b/lib/syntax/get_type.ml
@@ -64,10 +64,10 @@ let function_ : S.pos -> T.function_ -> t list -> t =
fun pos function_ params ->
ignore pos;
match function_ with
- | Arrcomp | Arrpos | Arrsize | Countobj | Desc | Dyneval | Getobj | Instr
- | Isplay ->
+ | Dyneval | Dyneval' -> Variable NumericString
+ | Arrcomp | Arrpos | Arrsize | Countobj | Desc | Getobj | Instr | Isplay ->
Variable Integer
- | Desc' | Dyneval' | Getobj' -> Variable String
+ | Desc' | Getobj' -> Variable String
| Func | Func' -> Variable NumericString
| Iif | Iif' -> ( match params with _ :: t :: _ -> t | _ -> Raw Bool)
| Input | Input' -> Variable NumericString