2003-02-13 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / errors / errors.txt
1 We use negative numbers for the compiler, and leave the possitive
2 numbers to match the Microsoft numbers.
3
4 NOTE: I am now moving to use numbers above 6000 instead of negative
5 numbers, as they look nicer on the debugging output.
6
7 -1      An Primary Expression was parsed, when a Type was expected.
8         This happens because my parser knowledge is limited, and I
9         am not good at writing grammars.  It is still an error,
10         but if I were smarter, I would have found a Bison/Yacc way
11         of handling it.
12
13 -2      Internal error, an interface is being defined inside an
14         interface (This should never happen).
15
16 -3      Constant type is not one of sbyte, byte, short, ushort, int,
17         uint, long, ulong, char, float, double, decimal, bool, string, enum
18         or null type. 
19
20 -5      A search for a name on a Type returned matches that contain
21         methods and non-methods.  They have the same name, and I do
22         not know how this is possible to begin with.
23
24 -6      Generic internal compiler error.
25
26 -7      Internal compiler error/library error: no default constructor
27         for a built-in type.  Ie, decimal (int 32)
28
29 -8      User-defined conversion cannot convert from or to object type.
30
31 -9      User-defined conversion cannot convert from or to an interface type.
32
33 -10     User-defined conversion cannot convert between types that derive 
34         from each other.
35
36 -11     Delegate creation expression takes only one argument
37
38 -12     More than one integral conversion exists for the type on a
39         switch statement.
40
41 -13     No return with a value found.  Warning, since we currently
42         do not perform flow analysis, and can not tell whether a
43         ret is required or not.
44
45 -14     Invalid number passed to probe
46
47 -15     Can not locate default assembly path
48
49 -16     Can not use System.Enum.ToObject (type, ConstantValue) with
50         user defined types.
51
52 -17     A type has already been defined (try --nostdlib)
53
54 -18     Do not know how to generate debugging information for this platform.
55
56 -19     Can not find required utility function in the core libraries.
57
58 -20     Cannot find attribute type Blah (maybe you forgot to set the 
59         usage using the AttributeUsage attribute ?).
60
61 -21     Bug in Microsoft compiler while applying named attribute for
62         StructLayout.CharSet value.
63
64 -22     Location of previous error 
65
66 -23     .NET runtime error when encoding attributes whose constructor
67         takes an object, but an enumeration value that is boxed is
68         passed.
69
70         Sample:
71                 using System.ComponentModel;
72                 [DefaultValue (CollectionChangeAction.Add)]
73                 class X { static void Main () { } }
74
75
76 -24     .NET runtime bug when trying to set custom attributes on the
77         return type of a method
78
79
80 6024    Unused `using' statement
81
82         Sample:
83                 using System;
84                 class X {} 
85
86 -25     Generic parse error