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

pattern matching with polymorphic variants #8001

Closed
vicuna opened this issue Jan 27, 2003 · 2 comments
Closed

pattern matching with polymorphic variants #8001

vicuna opened this issue Jan 27, 2003 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Jan 27, 2003

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

Bug description

Full_Name: Jacek Chrzaszcz
Version: 3.06
OS: Linux
Submission from: fw-gw-atm.mimuw.edu.pl (193.0.96.15)

Bonjour,

Deux lignes qui cassent ocaml toplevel:

let f1 = function A -> "a" | B -> "b";;
let f2 = function C -> "c" | D -> "d" | `A | _ as x -> f1 x;;

Warning: this match case is unused.
Warning: this pattern is unused.
Fatal error: exception Matching.Unused

Ca peut etre similaire au pb #539, mais je ne suis pas sur.

Amities

Jacek

@vicuna
Copy link
Author

vicuna commented Jan 28, 2003

Comment author: administrator

Already fixed (2003-01-28)

@vicuna vicuna closed this as completed Jan 28, 2003
@vicuna
Copy link
Author

vicuna commented Jan 28, 2003

Comment author: administrator

From: jacek@mimuw.edu.pl

Deux lignes qui cassent ocaml toplevel:
let f1 = function A -> "a" | B -> "b";;
let f2 = function C -> "c" | D -> "d" | `A | _ as x -> f1 x;;

Ca peut etre similaire au pb #539, mais je ne suis pas sur.

Non, c'est un probleme different, mais il se trouve que celui-ci aussi
est deja` corrige': la version CVS d'ocaml ne produit pas d'erreur.

Jacques

@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