errors.txt 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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