Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

fix: ignore * #477

Merged
merged 1 commit into from
Mar 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/res_printer.ml
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ and printModType modType cmtTbl =
{lbl.Asttypes.loc with loc_end = modType.Parsetree.pmty_loc.loc_end}
in
let attrs = printAttributes attrs cmtTbl in
let lblDoc = if lbl.Location.txt = "_" then Doc.nil
let lblDoc = if lbl.Location.txt = "_" || lbl.txt = "*" then Doc.nil
else
let doc = Doc.text lbl.txt in
printComments doc cmtTbl lbl.loc
Expand Down
5 changes: 5 additions & 0 deletions tests/printer/modType/expected/functor.res.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@ module type Functor = (@attr1 SetLike, @attr2 BtreeLike) => @attr3 NeoTree

module type Functor = (SetLike => Set) with type t = A.t
module type Functor = SetLike => (Set with type t = A.t)

module type B = () =>
{

}
4 changes: 4 additions & 0 deletions tests/printer/modType/functor.res
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ module type Functor = @attr1 (SetLike) => @attr2 (BtreeLike) => @attr3 NeoTree

module type Functor = SetLike => Set with type t = A.t
module type Functor = SetLike => (Set with type t = A.t)

module type B = () => {

}