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

Picking NaturalTransformation component crashes #397

Open
shingarov opened this issue Nov 18, 2024 · 0 comments
Open

Picking NaturalTransformation component crashes #397

shingarov opened this issue Nov 18, 2024 · 0 comments
Labels
blocker bug Something isn't working

Comments

@shingarov
Copy link
Owner

Trying to check the following program:

⟦measure len : list(''a) => int⟧

type list(''a) =
  | Nil                        => [v| v⋅len === 0 ]
  | Cons (x:''a, xs:list(''a)) => [v| v⋅len === (xs⋅len + 1) ]
  ;

⟦val check: list(''a)[v| v⋅len === 0 ] => int⟧
let check = (x) => {
	0
};

crashes because the natural transformation len has no components.

@shingarov shingarov added bug Something isn't working blocker labels Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant