a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
24 lines
274 B
C#
24 lines
274 B
C#
// CS0192: A readonly field `A.a' cannot be passed ref or out (except in a constructor)
|
|
// Line: 17
|
|
|
|
using System;
|
|
|
|
class A
|
|
{
|
|
public readonly int a=5;
|
|
|
|
public void Inc (ref int a)
|
|
{
|
|
++a;
|
|
}
|
|
|
|
public void IncCall ()
|
|
{
|
|
Inc (ref a);
|
|
}
|
|
|
|
static void Main ()
|
|
{
|
|
}
|
|
}
|