mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-01 13:11:11 +00:00
Minor changes
This commit is contained in:
parent
f677d23294
commit
dfa119672a
3 changed files with 13 additions and 14 deletions
|
@ -310,10 +310,10 @@ impl LimitedDisplay for TyParam {
|
|||
|
||||
impl CanbeFree for TyParam {
|
||||
fn unbound_name(&self) -> Option<Str> {
|
||||
if let TyParam::FreeVar(fv) = self {
|
||||
fv.unbound_name()
|
||||
} else {
|
||||
None
|
||||
match self {
|
||||
TyParam::FreeVar(fv) => fv.unbound_name(),
|
||||
TyParam::Type(t) => t.unbound_name(),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue