Is C# generics ready ?

So I was catching up on some blogging and noticed a thread about “issues” with VS.  One such issue was the “class Derived: Base crashes the editor” bug.  Sure enough this is 100% repeatable in C#.


Vb on the other hand has absolutely no “issues” here and you can code this in VB without  problem.


Class Base(Of T)


 


      Sub Merge(ByVal other As T)


 


      End Sub


End Class


 


Class Derived


      Inherits Base(Of Derived)


End Class


For the record, the problem in C# seems tot be a problem matching }’s   


 If only they had explicitly named closing constructs



2 Comments so far

  1.   Geoff Appleby on November 11th, 2005          

    Yeah, I discovered this problem yesterday when having a look at the little code challenge here: http://blogs.msdn.com/peterhal/archive/2005/11/09/490985.aspx

    To be honest, I’m just disgusted that a bug like this can slip through so easily into an RTM product.

  2.   Bill McCarthy on November 11th, 2005          

    Yeh, looks like if you want to work with Generics, then VB is the language of choice