forked from ocaml-ppx/ocamlformat
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix dropped attribute on package types.
Signed-off-by: Thomas Del Vecchio <[email protected]>
- Loading branch information
1 parent
c569728
commit 1f26688
Showing
10 changed files
with
34 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
(* CR-soon tdelvecchio: [[@annot2]] and [[@annot3]] are dropped by ocamlformat. *) | ||
|
||
module _ : sig | ||
val foo : ((module T with type t = 'a)[@annot1]) -> unit | ||
end = struct | ||
let foo (type a) (module M : T with type t = a) = (module M : T with type t = a) | ||
let foo (type a) (module M : T with type t = a[@annot2]) = | ||
(module M : T with type t = a[@annot3]) | ||
;; | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
(* CR-soon tdelvecchio: [[@annot2]] and [[@annot3]] are dropped by | ||
ocamlformat. *) | ||
|
||
module _ : sig | ||
val foo : ((module T with type t = 'a)[@annot1]) -> unit | ||
end = struct | ||
let foo (type a) (module M : T with type t = a) = | ||
(module M : T with type t = a) | ||
let foo (type a) (module M : T with type t = a[@annot2]) = | ||
(module M : T with type t = a[@annot3]) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters