aboutsummaryrefslogtreecommitdiff
path: root/typecheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'typecheck.c')
-rw-r--r--typecheck.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/typecheck.c b/typecheck.c
index 3d408857..1f79d308 100644
--- a/typecheck.c
+++ b/typecheck.c
@@ -749,4 +749,10 @@ bool can_be_mutated(env_t *env, ast_t *ast)
}
}
+type_t *parse_type_string(env_t *env, const char *str)
+{
+ type_ast_t *ast = parse_type_str(str);
+ return ast ? parse_type_ast(env, ast) : NULL;
+}
+
// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0