Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdotink committed Jul 12, 2024
1 parent e0cb2b7 commit 9f4fcf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion full-moon/src/ast/parsers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 9f4fcf3

Please sign in to comment.