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

File "src/core/lfrecon.ml", line 1205, characters 9-14: Pattern matching failed #269

Open
ryanakca opened this issue Jun 6, 2023 · 0 comments
Labels
A | core affecting the typechecker B | bug unexpected or incorrect behaviour

Comments

@ryanakca
Copy link
Contributor

ryanakca commented Jun 6, 2023

-*- mode: compilation; default-directory: "~/Documents/Note-CDST/" -*-
Compilation started at Mon Jun  5 22:17:28

beluga /home/rak/Documents/Note-CDST/traces.bel
## Type Reconstruction begin: /home/rak/Documents/Note-CDST/traces.bel ##
Uncaught exception.
Please report this as a bug.
File "src/core/lfrecon.ml", line 1205, characters 9-14: Pattern matching failed
Compilation exited abnormally with code 1 at Mon Jun  5 22:17:28

The offending code is obviously not type correct, but should not make Beluga crash...

LF cn : type =;
--name cn C c.

LF payload : type =
  | close : cn → payload;

LF trace : type =
  | msg  :  payload → trace;

LF tlist : type =
  | nil  : tlist
  | cons : trace → tlist;

schema ctx = cn;

rec merge : {g : ctx} [ g ⊢ trace ] → [ g ⊢ trace ] → [ g ⊢ tlist ] =
mlam g ⇒ fn t ⇒ fn t' ⇒
case t of
  | [ a ⊢ msg (close a) ] ⇒
	(case t' of
	  | [ a ⊢ msg (close a) t' ] ⇒ [ a ⊢ msg (close a) t' ]);
@MartyO256 MartyO256 added B | bug unexpected or incorrect behaviour A | core affecting the typechecker labels Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A | core affecting the typechecker B | bug unexpected or incorrect behaviour
Projects
None yet
Development

No branches or pull requests

2 participants