OCamlPro / wxOCaml

a WxWidgets binding for OCaml
Other
31 stars 8 forks source link

Syntax extension can't handle `when` in match case #3

Open olleharstedt opened 11 years ago

olleharstedt commented 11 years ago

Here's an example that won't compile:

let fn = function | i when true -> Printf.printf "Yey!" | _ -> Printf.printf "Ney?"

Error: File "test.ml", line 2, characters 15-17: Parse error: [a_LIDENT] expected after "->" (in [expr])