From 786e0b30c244c93aecb9d810f9fc1e9299162a41 Mon Sep 17 00:00:00 2001 From: Dereck Mezquita Date: Fri, 26 Jul 2024 16:51:48 -0500 Subject: [PATCH] Try. --- dev/syntax-research/syntax-doc.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/syntax-research/syntax-doc.R b/dev/syntax-research/syntax-doc.R index ba7b3d9..06b8c54 100644 --- a/dev/syntax-research/syntax-doc.R +++ b/dev/syntax-research/syntax-doc.R @@ -2,7 +2,7 @@ box::use(interface[interface, fun, type.frame, u, enum, type.list]) Colour <- enum("red", "green", "blue") my_colour <- Colour("red") -Colour("yellow") # Error: 'yellow' is not a valid value for Colour +try(Colour("yellow")) # Error: 'yellow' is not a valid value for Colour # interface allows for arguments defining properties and types on a list object # interface reserves some properties for internal use, such as `validate_on_access` and `extends`