From: Christopher Zimmermann <madroach@gmerlin.de>
To: caml-list@inria.fr
Subject: [Caml-list] unreasonable syntax error
Date: Thu, 17 Jan 2013 21:08:57 +0100 [thread overview]
Message-ID: <20130117210857.16022e5339943d22042d131a@gmerlin.de> (raw)
Hi,
compiling this piece of code gives an unreasonable syntax error:
let a = [|0|] in
a.(0) <-
if true then (), else ()
The ',' before the "else" is of course wrong.
But the error explanation is kind of misleading:
File "test.ml", line 3, characters 21-25:
Error: Syntax error: ')' expected
File "test.ml", line 2, characters 4-5:
Error: This '(' might be unmatched
Christopher
reply other threads:[~2013-01-17 20:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130117210857.16022e5339943d22042d131a@gmerlin.de \
--to=madroach@gmerlin.de \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox