Skip to content
This repository was archived by the owner on Nov 13, 2023. It is now read-only.
This repository was archived by the owner on Nov 13, 2023. It is now read-only.

Add support to export refs. #237

Description

@cristianoc

The translation should do the equivalent of this:

type ref('a) = {mutable contents: 'a};

[@genType]
let foo = r => r.contents + 1;

gives

export type myref<a> = {| contents: a |};

export const foo: (myref<number>) => number = function (Arg1: $any) {
  const result = ABS.foo([Arg1.contents]);
  return result
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions