fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7.  
  8. }
  9.  
  10. public byte GetBay()
  11. {
  12. sbyte temp = -1;
  13. return temp;
  14. }
  15. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(13,9): error CS0266: Cannot implicitly convert type `sbyte' to `byte'. An explicit conversion exists (are you missing a cast?)
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty