Skip to content

Cover compiler syntax test - #305

Draft
aspeddro wants to merge 1 commit into
rescript-lang:mainfrom
aspeddro:cover-syntax-test-rescript-repo
Draft

Cover compiler syntax test#305
aspeddro wants to merge 1 commit into
rescript-lang:mainfrom
aspeddro:cover-syntax-test-rescript-repo

Conversation

@aspeddro

Copy link
Copy Markdown
Collaborator

No description provided.

Decorated mutations in pipe expressions
================================================================================

let () =

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

Comment thread test/corpus/patterns.txt
Extension expressions in record patterns
================================================================================

let get_age3 = ({age: %raw("__GC"), name: _}) => age2

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove


================================================================================
Polymorphic variant conjunctions
================================================================================

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

Extended function type parameters
================================================================================

type t = (_, typeConstr<'a, state, 'foo>, 'x as 'y, module(S), %extension) => string

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only allow extension as parameter

Constraints after variant declarations
================================================================================

type color = Red | Blue

@aspeddro aspeddro Jul 27, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type boolean

type color = Red | Blue
  constraint 't = string

type result<'good, 'bad> =
  | Good('good)
  | Bad('bad)
  constraint 'good = boolean
  constraint 'bad = float

Variance parameters followed by constraints
================================================================================

type t<+'superlongthing, -'superlongthing, +'superlongthing, -'superlongthing, +'superlongthing>

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type t<+'a, -'b> constraint 't = ('state, 'action) => 'nextSubtree

Multiple constraints after record declarations
================================================================================

type result<'good, 'bad> = {good: 'good, bad: 'bad}

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type boolean
type result<'good, 'bad> = {good: 'good, bad: 'bad}
  constraint 'good = boolean constraint 'bad = float

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type t1 = private ..
type t2<'a, 'b> = ..
type t3<'a, 'b> = private ..

type t4 = .. constraint 't = ('s, 'a) => 'sub

Qualified, private, and attributed type extensions
================================================================================

type t += Foo

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type t = ..
type t += Bar
type t += Foo = Bar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant