From 9f4fcf34b7c2fba6e61ddd0ee1856d47a7c6192d Mon Sep 17 00:00:00 2001 From: jackdotink Date: Fri, 12 Jul 2024 01:58:17 -0500 Subject: [PATCH] fix bug --- full-moon/src/ast/parsers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/full-moon/src/ast/parsers.rs b/full-moon/src/ast/parsers.rs index ed4d1120..d5de6343 100644 --- a/full-moon/src/ast/parsers.rs +++ b/full-moon/src/ast/parsers.rs @@ -2549,7 +2549,7 @@ fn parse_type_suffix( is_intersection = true; } - _ if types.is_empty() => return ParserResult::Value(type_info), + _ if types.is_empty() && leading.is_none() => return ParserResult::Value(type_info), _ => { types.push(Pair::End(type_info));