Skip to content

Check the runtime representation of variants matches implementation a… #6513

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

Merged
merged 1 commit into from
Dec 8, 2023

Conversation

cristianoc
Copy link
Collaborator

…nd interface.

// module M : {
//   @tag("abc")
//   type t = | A(int)
// } =
// {
//   type t = | A(int)
// }

module M : {
  type t = | @as("abc") A
} =
{
  type t = | A
}

@cristianoc cristianoc requested a review from zth December 7, 2023 10:04
Copy link
Collaborator

@zth zth left a comment

Choose a reason for hiding this comment

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

Nothing gets me more excited than PRs to includecore.ml and friends!

let err = match (decl1.type_kind, decl2.type_kind) with
(_, Type_abstract) -> []
(* XXX *)
Copy link
Member

Choose a reason for hiding this comment

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

Leftover comment?

@cristianoc cristianoc force-pushed the include_check_variant_runtime_repr branch from d5b791e to e3deee2 Compare December 8, 2023 16:45
…nd interface.

```
// module M : {
//   @tag("abc")
//   type t = | A(int)
// } =
// {
//   type t = | A(int)
// }

module M : {
  type t = | @as("abc") A
} =
{
  type t = | A
}
```
@cristianoc cristianoc force-pushed the include_check_variant_runtime_repr branch from e3deee2 to c2bb768 Compare December 8, 2023 16:47
@cristianoc cristianoc merged commit adb55d0 into master Dec 8, 2023
@cristianoc cristianoc deleted the include_check_variant_runtime_repr branch December 8, 2023 16:47
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