I have found a construct that seems to work. At least I am getting no syntax errors when using it.

1
2
3
4
type ('a, 'b)graph_base when 'b :> graph_edge<'a> = class
  val nodes : 'a array
  val edges : 'b array
end

I have a question the dreaded syntax error is extremely uninformative. is it possible to enhance the compiler error reporting so that when a syntax error occurs the actual syntactical law that is being violated could be cited?

Thanks David

By on 5/8/2007 7:49 AM ()

Hi David,

We can improve the error messages on a case by case basis by adding rules to the grammar. Please drop us a bug report to fsbugs AT microsoft DOT com each time you see and error message that looks like it can be improved.

thanks!

don

By on 5/9/2007 8:42 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