Use const instead of zero-arg functions in few code-gen tests.

This commit is contained in:
KtorZ
2024-08-29 16:57:20 +02:00
parent ef89691331
commit a06383d333
3 changed files with 58 additions and 49 deletions

View File

@@ -1101,13 +1101,11 @@ impl TypeVar {
Self::Link { tipo } => tipo.get_inner_types(),
Self::Unbound { .. } => vec![],
var => {
vec![
Type::Var {
tipo: RefCell::new(var.clone()).into(),
alias: None,
}
.into(),
]
vec![Type::Var {
tipo: RefCell::new(var.clone()).into(),
alias: None,
}
.into()]
}
}
}