bug2.cs 243 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // fixed
  3. //
  4. class X {
  5. static void A (ref int a)
  6. {
  7. a++;
  8. }
  9. // Int32&
  10. static void B (ref int a)
  11. {
  12. // Int32&&
  13. A (ref a);
  14. }
  15. static int Main ()
  16. {
  17. int a = 10;
  18. B (ref a);
  19. if (a == 11)
  20. return 0;
  21. else
  22. return 1;
  23. }
  24. }