google / google/codeworld

Broken type inference for function parameter

Open
#349 1 comment 0 reactions 0 assignees View on GitHub
bug funblocks
Dominant language
Haskell
Stars
1.3k
Forks
201
PR merge metrics
No merged PRs in 30d

Description

![z8e1e21ve3b](https://cloud.githubusercontent.com/assets/544744/18406445/e3bff8b2-76b1-11e6-9951-362758beb355.png)

Expected: Since `movement` is correctly inferred as requiring a pair of numbers, I expect the pair passed to `step` to have to be a pair of numbers, as well.

Instead, `step` is incorrectly given a polymorphic type.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.