diff --git a/full-moon/src/ast/parsers.rs b/full-moon/src/ast/parsers.rs index d5de6343..d9862d1a 100644 --- a/full-moon/src/ast/parsers.rs +++ b/full-moon/src/ast/parsers.rs @@ -2483,11 +2483,11 @@ fn parse_type_suffix( let type_info = if current_type.is_some() { current_type.take().unwrap() } else { - let ParserResult::Value(ty) = parse_simple_type(state, SimpleTypeStyle::Default) else { + let ParserResult::Value(type_info) = parse_simple_type(state, SimpleTypeStyle::Default) else { return ParserResult::LexerMoved; }; - ty + type_info }; let Ok(current_token) = state.current() else {