Which compiler version are you using? On 1.9.6.16 I get an error if I remove the annotation from TagNameNode as well.

The value restriction here seems to be due to the fact that functions are automatically genericized as much as possible, but types require an explicit annotation of the fact that they are generic. So without the type annotation, the token parameter is taken to be of type 'a when 'a :> TextToken, but since KeywordNode is not a generic type, it can't have generic parameters in it's constructor.

By on 9/10/2009 9:21 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