镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Issues with outcome printer and arity0 #513

Closed

Description

@cristianoc

See

One case resolved, this case still outstanding:

// hovering on inferred type: (. unit, unit) => int
let arity0c = (. (), ()) => 3

// hovering on inferred type: (. unit) => int
let arity0d = (. ()) => {
  let f = () => 3
  f
}

Activity

  1. cristianoc commented on May 31, 2022

    @cristianoc
    ContributorAuthor

    The desired type for arity0d is (. unit) => (unit) => int, except this type is currently equivalent to (. unit, unit) => int.
    So the type with the intended semantics is currently not expressible.

  2. stale commented on May 28, 2023

    @stale

    The rescript-lang/syntax repo is obsolete and will be archived soon. If this issue is still relevant, please reopen in the compiler repo (https://github.com/rescript-lang/rescript-compiler) or comment here to ask for it to be moved. Thank you for your contributions.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions