cs0206.cs 238 B

12345678910111213141516
  1. // cs0206.cs: indexers or properties can not be used as ref or out arguments
  2. // Line:
  3. class X {
  4. static int P { get { return 1; } set { } }
  5. static int m (out int v)
  6. {
  7. v = 1;
  8. return 1;
  9. }
  10. static void Main ()
  11. {
  12. m (out P);
  13. }
  14. }