Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Issues with outcome printer and arity0 #513

Closed
cristianoc opened this issue May 31, 2022 · 2 comments
Closed

Issues with outcome printer and arity0 #513

cristianoc opened this issue May 31, 2022 · 2 comments
Labels

Comments

@cristianoc
Copy link
Contributor

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
}
@cristianoc
Copy link
Contributor Author

cristianoc commented May 31, 2022

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.

@stale
Copy link

stale bot commented May 28, 2023

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.

@stale stale bot added the stale label May 28, 2023
@stale stale bot closed this as completed Jun 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant