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