Skip to content

Commit

Permalink
leave external function resolve to later pass
Browse files Browse the repository at this point in the history
  • Loading branch information
glyh committed Oct 5, 2024
1 parent 69fd34d commit e082182
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/precps/tyenv.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub fn TyEnv::find(self : TyEnv, name : String) -> PreCps? {
match self.bindings[Right(name)] {
Some(item) => Some(Var(item.1, item.0))
None =>
match self.bindings[Right("minimbt_" + name)] {
match self.bindings[Right(name)] {
None => None
Some(item) => Some(Var(item.1, item.0))
}
Expand Down
2 changes: 1 addition & 1 deletion src/precps/var.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ pub fn Var::to_string(self : Var) -> String {
}

pub fn Var::var_of_external(ext_name : String) -> Var {
{ name: Some("minimbt_" + ext_name), id: -1 }
{ name: Some(ext_name), id: -1 }
}

0 comments on commit e082182

Please sign in to comment.