The following discriminated union fails to compile:
type Expression =
| Identifier of string
| Integer of int
| Assignment of Identifier * Expression
with the shown error being
The type "Identifier" is not defined.
on the last union case.
I've tried tagging Expression
with the rec
attribute but that seems of no avail.
Is there a work-around for this? Better yet, is the referred reason the cause of my trouble?