Skip to content

Commit

Permalink
fix(parser): adjust how alias are applied to match full type
Browse files Browse the repository at this point in the history
  • Loading branch information
glihm committed Dec 17, 2023
1 parent 7e10be1 commit 96e34eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/parser/src/tokens/composite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ impl Composite {
}

pub fn apply_alias(&mut self, type_path: &str, alias: &str) {
if self.type_path.starts_with(type_path) {
if self.type_path_no_generic() == type_path {
self.alias = Some(alias.to_string());
}

Expand Down

0 comments on commit 96e34eb

Please sign in to comment.