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.
- Loading branch information
1 parent
c4ad9e8
commit e534780
Showing
6 changed files
with
14 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
ocamlformat: ignoring "tests/dropped_attribute.ml" (syntax error) | ||
File "tests/dropped_attribute.ml", line 5, characters 22-31: | ||
5 | val foo : (module T [@annot1] with type t = 'a [@annot2]) -> unit | ||
^^^^^^^^^ | ||
Error: invalid package type: an attribute cannot go here |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
ocamlformat: ignoring "tests/dropped_attribute.ml" (syntax error) | ||
File "tests/dropped_attribute.ml", line 5, characters 22-31: | ||
5 | val foo : (module T [@annot1] with type t = 'a [@annot2]) -> unit | ||
^^^^^^^^^ | ||
Error: invalid package type: an attribute cannot go here |
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,8 +0,0 @@ | ||
(* Attributes [[@annot1]] and [[@annot3]] are dropped by the compiler; | ||
an upcoming patch should fix this. *) | ||
|
||
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[@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,8 +0,0 @@ | ||
(* Attributes [[@annot1]] and [[@annot3]] are dropped by the compiler; an | ||
upcoming patch should fix this. *) | ||
|
||
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[@annot4]) = () | ||
end | ||
Empty file.