Version française
Home     About     Download     Resources     Contact us    
Browse thread
zero-arity constructor
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Julia Lawall <julia@d...>
Subject: zero-arity constructor
The following code compiles in 3.12.0 but doesn't compile in 3.10.2. Is it 
a bug or a feature?

type ty = A | B

let start x =
  match x with
    A _ -> ()
  | _ -> ()

julia