Because the first two types you're defining are actually just type synonyms, i.e. these types do not exist at runtime. These kinds of types cannot be recursive.The second example uses a "real" type TreeNode, which will be compiled as Node of int* TreeNode list which is of course a valid type.Kurt

By on 2/24/2009 1:46 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper