Cover compiler syntax test - #305
Draft
aspeddro wants to merge 1 commit into
Draft
Conversation
aspeddro
commented
Jul 27, 2026
| Decorated mutations in pipe expressions | ||
| ================================================================================ | ||
|
|
||
| let () = |
aspeddro
commented
Jul 27, 2026
| Extension expressions in record patterns | ||
| ================================================================================ | ||
|
|
||
| let get_age3 = ({age: %raw("__GC"), name: _}) => age2 |
aspeddro
commented
Jul 27, 2026
|
|
||
| ================================================================================ | ||
| Polymorphic variant conjunctions | ||
| ================================================================================ |
aspeddro
commented
Jul 27, 2026
| Extended function type parameters | ||
| ================================================================================ | ||
|
|
||
| type t = (_, typeConstr<'a, state, 'foo>, 'x as 'y, module(S), %extension) => string |
Collaborator
Author
There was a problem hiding this comment.
Only allow extension as parameter
aspeddro
commented
Jul 27, 2026
| Constraints after variant declarations | ||
| ================================================================================ | ||
|
|
||
| type color = Red | Blue |
Collaborator
Author
There was a problem hiding this comment.
type boolean
type color = Red | Blue
constraint 't = string
type result<'good, 'bad> =
| Good('good)
| Bad('bad)
constraint 'good = boolean
constraint 'bad = float
aspeddro
commented
Jul 27, 2026
| Variance parameters followed by constraints | ||
| ================================================================================ | ||
|
|
||
| type t<+'superlongthing, -'superlongthing, +'superlongthing, -'superlongthing, +'superlongthing> |
Collaborator
Author
There was a problem hiding this comment.
type t<+'a, -'b> constraint 't = ('state, 'action) => 'nextSubtree
aspeddro
commented
Jul 27, 2026
| Multiple constraints after record declarations | ||
| ================================================================================ | ||
|
|
||
| type result<'good, 'bad> = {good: 'good, bad: 'bad} |
Collaborator
Author
There was a problem hiding this comment.
type boolean
type result<'good, 'bad> = {good: 'good, bad: 'bad}
constraint 'good = boolean constraint 'bad = float
aspeddro
commented
Jul 27, 2026
Comment on lines
+1361
to
+1366
| type t = private .. | ||
| type t<'a, 'b> = .. | ||
| type t<'a, 'b> = private .. | ||
|
|
||
| type t = .. | ||
| constraint 't = ('s, 'a) => 'sub |
Collaborator
Author
There was a problem hiding this comment.
type t1 = private ..
type t2<'a, 'b> = ..
type t3<'a, 'b> = private ..
type t4 = .. constraint 't = ('s, 'a) => 'sub
aspeddro
commented
Jul 27, 2026
| Qualified, private, and attributed type extensions | ||
| ================================================================================ | ||
|
|
||
| type t += Foo |
Collaborator
Author
There was a problem hiding this comment.
type t = ..
type t += Bar
type t += Foo = Bar
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.