Bugzilla – Bug 318358
[GMCS] Interface with generic method and constraint does not compile
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by mailing@devspace.com 2005-06-23 16:25:01 MST ---- Consider the following interface declaration, public interface BuggyInterface { returntype SampleReturn< returntype>() where returntype: class; } The following error is generated. syntax error, got token `IDENTIFIER' /Users/cgross/Desktop/projects/Mono.Bugs/Class1.cs(6) error CS1041: Identifier expected /Users/cgross/Desktop/projects/Mono.Bugs/Class1.cs(6) error CS1041: Identifier expected /Users/cgross/Desktop/projects/Mono.Bugs/Class1.cs(6) error CS1041: Identifier expected This code compiles without problems on MS .NET SDK Beta 2. The error lies with the constraint "where returntype: class; ---- Additional Comments From martin@ximian.com 2005-06-28 11:25:29 MST ---- Fixed in SVN.