Version française
Home     About     Download     Resources     Contact us    
Browse thread
Union of polymorphic variants...
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Stephane Glondu <steph@g...>
Subject: Union of polymorphic variants...
Hi,

Why isn't possible to do the following?

type b = [`A of [`B of bool]]
type c = [`A of [`C of char]]
type a = [b|c]

I expect the last declaration to be equivalent to:

type a = [`A of [`B of bool | `C of char]]


Thanks,

-- 
Stephane Glondu