English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
anonymous function + lable bug?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2000-11-06 (22:05)
From: Chris Hecker <checker@d...>
Subject: anonymous function + lable bug?

Is this a bug?

# let f = fun ~x -> x;;
val f : x:'a -> 'a = <fun>

# let g = function ~x -> x;;
Characters 17-18:
Syntax error

I thought these two were equivalent?

Chris