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
7e375ed
commit d32387e
Showing
10 changed files
with
31 additions
and
31 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,10 +1,8 @@ | ||
(* Attributes [[@annot1]] and [[@annot3]] are dropped by the compiler; | ||
an upcoming patch should fix this. *) | ||
|
||
(* CR-soon tdelvecchio: [[@annot4]] is dropped by ocamlformat. *) | ||
|
||
module _ : sig | ||
val foo : ((module T with type t = 'a)[@annot2]) -> unit | ||
end = struct | ||
let foo (type a) (module M : T with type t = a) = () | ||
let foo (type a) (module M : T with type t = a[@annot4]) = () | ||
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,10 +1,8 @@ | ||
(* Attributes [[@annot1]] and [[@annot3]] are dropped by the compiler; an | ||
upcoming patch should fix this. *) | ||
|
||
(* CR-soon tdelvecchio: [[@annot4]] is dropped by ocamlformat. *) | ||
|
||
module _ : sig | ||
val foo : ((module T with type t = 'a)[@annot2]) -> unit | ||
end = struct | ||
let foo (type a) (module M : T with type t = a) = () | ||
let foo (type a) (module M : T with type t = a[@annot4]) = () | ||
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