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