https://bugzilla.novell.com/show_bug.cgi?id=460866
Summary: Bad error message from gcs with incorrect code
Product: Mono: Compilers
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Enhancement
Priority: P5 - None
Component: C#
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
Found By: ---
Repro:
class T {
static void Main Main () {
System.Collections.Generic.List <object> a = null;
}
}
gmcs output:
r...@linux:~/test/linq> gmcs test4.cs
test4.cs(2,29): error CS1519: Unexpected symbol `Main' in class, struct, or
interface member declaration
test4.cs(2,26): error CS1520: Class, struct, or interface method must have a
return type
test4.cs(3,45): error CS1525: Unexpected symbol `OP_GENERICS_LT_DECL'
csc output:
Y:\test\linq>csc test4.cs
test4.cs(2,19): error CS1002: ; expected
The issue is the third message gmcs outputs ("Unexpected symbol
`OP_GENERICS_LT_DECL'").
This is really a minor issue though given that the code is clearly wrong and
gmcs gives enough error information to find the problem quickly.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs