From 98169bd352aaef7bc6ef56f708a8eb4312f02557 Mon Sep 17 00:00:00 2001 From: greg Date: Fri, 29 Sep 2017 14:53:09 -0700 Subject: [PATCH] update test for new type anno format --- src/schala_lang/parsing.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/schala_lang/parsing.rs b/src/schala_lang/parsing.rs index bea72b3..3a7c03a 100644 --- a/src/schala_lang/parsing.rs +++ b/src/schala_lang/parsing.rs @@ -1083,7 +1083,10 @@ mod parse_tests { fn parsing_type_annotations() { parse_test!("const a = b : Int", AST(vec![ Declaration(Binding { name: rc!(a), constant: true, expr: - Expression(var!("b"), Some(TypeAnno(rc!(Int)))) })])); + Expression(var!("b"), Some(TypeAnno::Singleton { + name: rc!(Int), + params: vec![], + })) })])); }