-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1334 from voodoos/issue1322
Don't repeat environment entries in Typemod.check_type_decl (ocaml/ocaml#10382)
- Loading branch information
Showing
6 changed files
with
75 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
FLG -short-paths |
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,7 @@ | ||
module type Monad = sig | ||
type 'a t | ||
end | ||
module type Monad_option = | ||
Monad | ||
with type 'a t = 'a option | ||
constraint 'a = int |
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,9 @@ | ||
module type S = sig | ||
type 'a t = 'a | ||
constraint 'a = < m : r > | ||
and r = (< m : r >) t | ||
end | ||
|
||
module type S = sig type 'a t = 'a constraint 'a = < m : r > and r = < m : r > t end | ||
|
||
module type T = S with type 'a t = 'b constraint 'a = < m : 'b > |
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,36 @@ | ||
$ $MERLIN single errors -filename foo.ml < foo.ml | ||
{ | ||
"class": "return", | ||
"value": [ | ||
{ | ||
"start": { | ||
"line": 5, | ||
"col": 2 | ||
}, | ||
"end": { | ||
"line": 7, | ||
"col": 23 | ||
}, | ||
"type": "typer", | ||
"sub": [], | ||
"valid": true, | ||
"message": "In this `with' constraint, the new definition of t | ||
does not match its original definition in the constrained signature: | ||
Type declarations do not match: | ||
type 'a t = 'a t constraint 'a = int | ||
is not included in | ||
type 'a t | ||
Their constraints differ. | ||
File \"foo.ml\", line 2, characters 2-11: Expected declaration | ||
File \"foo.ml\", line 6, characters 9-54: Actual declaration" | ||
} | ||
], | ||
"notifications": [] | ||
} | ||
|
||
$ $MERLIN single errors -filename nasty.ml < nasty.ml | ||
{ | ||
"class": "return", | ||
"value": [], | ||
"notifications": [] | ||
} |