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

Incorrect warning 12 for character ranges #6193

Closed
vicuna opened this issue Sep 26, 2013 · 1 comment
Closed

Incorrect warning 12 for character ranges #6193

vicuna opened this issue Sep 26, 2013 · 1 comment
Assignees

Comments

@vicuna
Copy link

vicuna commented Sep 26, 2013

Original bug ID: 6193
Reporter: @yakobowski
Assigned to: @alainfrisch
Status: closed (set by @xavierleroy on 2015-12-11T18:24:14Z)
Resolution: fixed
Priority: normal
Severity: minor
Fixed in version: 4.02.0+dev
Category: typing

Bug description

~$ ledit ocaml -w +a
OCaml version 4.02.0+dev2-2013-09-12

let escape_char = function

| '\r' -> "\\r"
| '"' -> "\\\"" 
| '\'' -> "\\'"
| ' ' .. '~' as printable -> String.make 1 printable
| unprintable -> Printf.sprintf "\\%03o" (Char.code unprintable);;

Warning 12: this sub-pattern is unused.
Warning 12: this sub-pattern is unused.

(The warning refers to the "printable" line)

@vicuna
Copy link
Author

vicuna commented Oct 1, 2013

Comment author: @alainfrisch

Thanks, fixed by commit 14205.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants