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

Bug Or-Pat #2730

Closed
vicuna opened this issue Mar 26, 2001 · 2 comments
Closed

Bug Or-Pat #2730

vicuna opened this issue Mar 26, 2001 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Mar 26, 2001

Original bug ID: 324
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Bonjour à tous,

Voici un bug lié aux or-patterns (testé sous 3.01). Le fragment
suivant:

type t =
| A
| B
;;

let test x y =
match x, y with
| ((A, 2) | (B, 1)), A ->
false
;;

provoque l'erreur interne

Uncaught exception: File "typing/parmatch.ml", line 0, characters 28464-28476: Assertion failed

--
François Pottier
Francois.Pottier@inria.fr
http://pauillac.inria.fr/~fpottier/

@vicuna
Copy link
Author

vicuna commented Mar 26, 2001

Comment author: administrator

Bonjour à tous,

Voici un bug lié aux or-patterns (testé sous 3.01). Le fragment
suivant:

type t =
| A
| B
;;

let test x y =
match x, y with
| ((A, 2) | (B, 1)), A ->
false
;;

provoque l'erreur interne

Uncaught exception: File "typing/parmatch.ml", line 0, characters 28464-28476: Assertion failed

--
François Pottier
Francois.Pottier@inria.fr
http://pauillac.inria.fr/~fpottier/

Petit bug d'implémentation de principes sains au départ.
À la limite du typo dans le code.

Corrigé et commis.

Merci pour ce rapport de bug.

--Luc

@vicuna
Copy link
Author

vicuna commented Mar 26, 2001

Comment author: administrator

Fixed 2001-03-26 by Luc

@vicuna vicuna closed this as completed Mar 26, 2001
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant