[Mono-bugs] [Bug 58305][Nor] New - mcs chokes on generic method in interface
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 10 May 2004 18:42:06 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by sestoft@dina.kvl.dk.
http://bugzilla.ximian.com/show_bug.cgi?id=58305
--- shadow/58305 2004-05-10 18:42:06.000000000 -0400
+++ shadow/58305.tmp.10996 2004-05-10 18:42:06.000000000 -0400
@@ -0,0 +1,44 @@
+Bug#: 58305
+Product: Mono: Compilers
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: sestoft@dina.kvl.dk
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mcs chokes on generic method in interface
+
+Description of Problem:
+
+mcs chokes on generic method in interface. Looks like a parser problem.
+
+
+Steps to reproduce the problem:
+1. Compile the attached program
+
+
+Actual Results:
+
+Mono C# Compiler 0.91.0.0 for Generics
+syntax error, got token `OP_GENERICS_LT', expecting OPEN_BRACE OPEN_PARENS
+ex-gen-class-linkedlist.cs(23) error CS1041: Identifier expected
+System.NullReferenceException: Object reference not set to an instance of
+an object
+in <0x0001a> Mono.CSharp.TypeContainer:AddProperty (Mono.CSharp.Property)
+in <0x054d1> Mono.CSharp.CSharpParser:yyparse (Mono.CSharp.yyParser.yyInput)
+in <0x00079> Mono.CSharp.CSharpParser:parse ()
+
+ex-gen-class-linkedlist.cs(23) error CS8025: Parsing error
+
+
+Expected Results:
+
+Program compiles OK.