fork download
  1. using System;
  2.  
  3. enum X { A }
  4.  
  5. public class Test
  6. {
  7. static void Method(X x)
  8. {
  9. }
  10.  
  11. public static void Main()
  12. {
  13. Method(10);
  14. }
  15. }
Compilation error #stdin compilation error #stdout 0.01s 13960KB
stdin
Standard input is empty
compilation info
prog.cs(13,3): error CS1502: The best overloaded method match for `Test.Method(X)' has some invalid arguments
prog.cs(7,14): (Location of the symbol related to previous error)
prog.cs(13,10): error CS1503: Argument `#1' cannot convert `int' expression to type `X'
Compilation failed: 2 error(s), 0 warnings
stdout
Standard output is empty