Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore -uncurried compiler flag. #6885

Merged
merged 2 commits into from
Jul 18, 2024
Merged

Ignore -uncurried compiler flag. #6885

merged 2 commits into from
Jul 18, 2024

Conversation

cristianoc
Copy link
Collaborator

@cristianoc cristianoc commented Jul 18, 2024

Syntax tests have changed as they were still run in curried mode.

@cristianoc cristianoc force-pushed the remove-uncurried-flag branch 3 times, most recently from 1578c6a to 851fcab Compare July 18, 2024 04:20
@cristianoc cristianoc force-pushed the remove-uncurried-flag branch from 851fcab to 3bb4545 Compare July 18, 2024 04:24
@cristianoc cristianoc requested review from cknitt and zth July 18, 2024 04:25
@@ -1,27 +1,26 @@
@@jsxConfig({version: 3})

module V3 = {
@obj external makeProps: (~a: 'a, ~b: 'b, ~key: string=?, unit) => {"a": 'a, "b": 'b} = ""
@obj external makeProps: (~key: string=?, unit) => {.} = ""
Copy link
Member

Choose a reason for hiding this comment

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

This change looks weird, why did a and b disappear?

Copy link
Collaborator Author

@cristianoc cristianoc Jul 18, 2024

Choose a reason for hiding this comment

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

Good question: @mununki would you open an issue and take a look?
(Issue: typeConstraint.res does not look right in uncurried mode).

\"TypeConstraint$V3"
}
}

@@jsxConfig({version: 4, mode: "classic"})

module V4C = {
type props<'a, 'b> = {a: 'a, b: 'b}
type props = {}
Copy link
Member

Choose a reason for hiding this comment

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

Same here.

@@ -226,10 +226,10 @@ let f = (
/* c6 */ ~x=?,
) => /* c7 */ ()

let multiply = (type /* c-2 */ t /* c-1 */, /* c0 */ m1 /* c1 */, /* c2 */ m2 /* c3 */) => ()
let multiply = (type /* c-2 */ t /* c-1 */, m1 /* c1 */, /* c2 */ m2 /* c3 */) => ()
Copy link
Member

Choose a reason for hiding this comment

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

Comment c0 has disappeared

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Would you open a separate issue about formatting for this example?

Copy link
Member

Choose a reason for hiding this comment

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

See #6890

@cristianoc cristianoc mentioned this pull request Jul 18, 2024
@cristianoc
Copy link
Collaborator Author

Taken note of the observations for creating separate issues. Merging this.

@cristianoc cristianoc merged commit 1a9c2e3 into master Jul 18, 2024
19 checks passed
@cristianoc cristianoc deleted the remove-uncurried-flag branch July 18, 2024 06:18
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.

3 participants