Add new bug file to check; New test to excercise the enum bug that I just
[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 -1      An Primary Expression was parsed, when a Type was expected.
5         This happens because my parser knowledge is limited, and I
6         am not good at writing grammars.  It is still an error,
7         but if I were smarter, I would have found a Bison/Yacc way
8         of handling it.
9
10 -2      Internal error, an interface is being defined inside an
11         interface (This should never happen).
12
13 -3      Constant type is not one of sbyte, byte, short, ushort, int,
14         uint, long, ulong, char, float, double, decimal, bool, string, enum
15         or null type. 
16
17 -5      A search for a name on a Type returned matches that contain
18         methods and non-methods.  They have the same name, and I do
19         not know how this is possible to begin with.
20
21 -6      Generic internal compiler error.
22
23 -7      Internal compiler error/library error: no default constructor
24         for a built-in type.  Ie, decimal (int 32)
25
26 -8      User-defined conversion cannot convert from or to object type.
27
28 -9      User-defined conversion cannot convert from or to an interface type.
29
30 -10     User-defined conversion cannot convert between types that derive 
31         from each other.
32
33 -11     Delegate creation expression takes only one argument
34
35 -12     More than one integral conversion exists for the type on a
36         switch statement.
37
38 -13     No return with a value found.  Warning, since we currently
39         do not perform flow analysis, and can not tell whether a
40         ret is required or not.
41
42 -14     Invalid number passed to probe
43
44 -15     Can not locate default assembly path
45
46 -16     Can not use System.Enum.ToObject (type, ConstantValue) with
47         user defined types.