errors.txt 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. We use negative numbers for the compiler, and leave the possitive
  2. numbers to match the Microsoft numbers:
  3. -1 An Primary Expression was parsed, when a Type was expected.
  4. This happens because my parser knowledge is limited, and I
  5. am not good at writing grammars. It is still an error,
  6. but if I were smarter, I would have found a Bison/Yacc way
  7. of handling it.
  8. -2 Internal error, an interface is being defined inside an
  9. interface (This should never happen).
  10. -3 Constant type is not one of sbyte, byte, short, ushort, int,
  11. uint, long, ulong, char, float, double, decimal, bool, string, enum
  12. or null type.
  13. -5 A search for a name on a Type returned matches that contain
  14. methods and non-methods. They have the same name, and I do
  15. not know how this is possible to begin with.
  16. -6 Generic internal compiler error.
  17. -7 Internal compiler error/library error: no default constructor
  18. for a built-in type. Ie, decimal (int 32)
  19. -8 User-defined conversion cannot convert from or to object type.
  20. -9 User-defined conversion cannot convert from or to an interface type.
  21. -10 User-defined conversion cannot convert between types that derive
  22. from each other.
  23. -11 Delegate creation expression takes only one argument
  24. -12 More than one integral conversion exists for the type on a
  25. switch statement.
  26. -13 No return with a value found. Warning, since we currently
  27. do not perform flow analysis, and can not tell whether a
  28. ret is required or not.
  29. -14 Invalid number passed to probe
  30. -15 Can not locate default assembly path
  31. -16 Can not use System.Enum.ToObject (type, ConstantValue) with
  32. user defined types.
  33. -17 A type has already been defined (try --nostdlib)
  34. -18 Do not know how to generate debugging information for this platform.
  35. -19 Can not find required utility function in the core libraries.
  36. -20 Cannot find attribute type Blah (maybe you forgot to set the
  37. usage using the AttributeUsage attribute ?).
  38. -21 Bug in Microsoft compiler while applying named attribute for
  39. StructLayout.CharSet value.