fork download
  1. class X {}
  2. class Y : X {}
  3. class Test {
  4. static void f(ref X x){}
  5. static void Main() {
  6. X[] x = new Y[1];
  7. f(ref x[0]);
  8. }
  9. }
Runtime error #stdin #stdout 0.03s 39392KB
stdin
Standard input is empty
stdout
Standard output is empty