Browse thread
Union of polymorphic variants...
- Stephane Glondu
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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