Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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