Bug 318358 (MONO75368) - [GMCS] Interface with generic method and constraint does not compile
Summary: [GMCS] Interface with generic method and constraint does not compile
Status: RESOLVED FIXED
Alias: MONO75368
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: Other All
: P3 - Medium : Major
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-23 23:25 UTC by Christian Gross
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:23:04 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.