Skip to content
This repository has been archived by the owner on Oct 18, 2021. It is now read-only.

ICE with Amc.type_error + stuck type functions #217

Closed
plt-amy opened this issue Nov 5, 2019 · 0 comments
Closed

ICE with Amc.type_error + stuck type functions #217

plt-amy opened this issue Nov 5, 2019 · 0 comments
Assignees
Labels
bug TC: Type Functions Issues/PRs relating to top-level closed type functions X-ICE Internal compiler errors.
Milestone

Comments

@plt-amy
Copy link
Member

plt-amy commented Nov 5, 2019

First, declare a type function with no equations: (This isn't really necessary, but we do need a stuck type expression here)

type function foo 'a : Amc.error_message begin
end

Next, try to reduce type_error (foo _):

> Typeable.( Refl : Amc.type_error (foo int) :~: int )
amc: foo intKind error in solveTypeError
CallStack (from HasCallStack):
  error, called at src/Types/Unify/Magic.hs:132:19 in amuletml-0.6.0.0-FpV3lZItaEn5
@plt-amy plt-amy added bug TC: Type Functions Issues/PRs relating to top-level closed type functions X-ICE Internal compiler errors. labels Nov 5, 2019
@plt-amy plt-amy added this to the 1.0.0.0 milestone Nov 5, 2019
@plt-amy plt-amy self-assigned this Nov 5, 2019
@plt-amy plt-amy closed this as completed in 3651eb9 Nov 6, 2019
plt-amy pushed a commit that referenced this issue Nov 6, 2019
plt-amy pushed a commit that referenced this issue Jan 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug TC: Type Functions Issues/PRs relating to top-level closed type functions X-ICE Internal compiler errors.
Projects
None yet
Development

No branches or pull requests

1 participant