Skip to content

Commit

Permalink
Remove expand pass. Fix library function uniq, kind should be TYPE->L…
Browse files Browse the repository at this point in the history
…INEAR

not LINEAR->LINEAR.
  • Loading branch information
skaller committed May 19, 2022
1 parent 7eb953f commit 22d49ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/compiler/flx_bind/flx_bbind.ml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ print_endline ("[flx_bbind] bind_symbol " ^ sym.Flx_sym.id ^ "??");
print_endline ("\n==========================================\n");
*)
(* DOING EXPANSION NOW *)
(*
Flx_bsym_table.iter (fun bid parent bsym ->
let bbdcl = Flx_bsym.bbdcl bsym in
let sr = Flx_bsym.sr bsym in
Expand All @@ -159,6 +160,7 @@ print_endline ("[flx_bbind] bind_symbol " ^ sym.Flx_sym.id ^ "??");
| _ -> ()
) bsym_table;
*)
(*
print_endline ("\n=====================\n TYPEDEFS after expansion\n=====================\n");
Flx_bsym_table.iter (fun bid parent bsym ->
Expand Down
2 changes: 1 addition & 1 deletion src/packages/unique.fdoc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ open class Unique
fun unwrap[T] : _borrowed T -> T = "($t)";

// functor for typing
typefun uniq (T:LINEAR):LINEAR => _uniq T;
typefun uniq (T:TYPE):LINEAR => _uniq T;

// NOTE: DEPRECATED
// peek inside the box without changing livenes state
Expand Down

0 comments on commit 22d49ed

Please sign in to comment.