[Mono-bugs] [Bug 460866] New: Bad error message from gcs with incorrect code
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Dec 19 12:30:08 EST 2008
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: mono-bugs at lists.ximian.com
ReportedBy: rkvinge at novell.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Repro:
class T {
static void Main Main () {
System.Collections.Generic.List <object> a = null;
}
}
gmcs output:
rolf at 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.
More information about the mono-bugs
mailing list