Skip to content
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

run with a return type that's not in the codebase can cause a crash that mentions kind inference #5448

Open
aryairani opened this issue Nov 7, 2024 · 0 comments

Comments

@aryairani
Copy link
Contributor

Describe and demonstrate the bug
Please attach a ucm transcript if possible, calling out the unexpected behavior in the text. e.g.

Input:

``` unison :hide
type NewType = NewType
main = do
  NewType
```

``` ucm
scratch/main> run main
```

Output:

Uh oh, an unexpected exception brought the process down! That should never happen. Please file a bug report.

Here's a stringy rendering of the exception:

  [typeConstraintTree] Ref lookup failure: ReferenceDerived (Id "326g7u3sau2omhom538kitej7pdguieedtfqs011mkllv2sp0u88gu440opqqpku9teq1h2d90jv25t5cai5as1ehoprapns1491vqg" 0)
  CallStack (from HasCallStack):
    error, called at src/Unison/KindInference/Generate.hs:97:22 in unison-parser-typechecker-0.0.0-KNkVGbTXlis2lnVjsRIJUx:Unison.KindInference.Generate

Screenshots

Environment (please complete the following information):

  • 0.5.27

Additional context

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

No branches or pull requests

1 participant