public class C {
public void M(ref readonly int x) {
}
public void User() {
int x = 0;
M(x); // OK
M(ref x); // ERROR
}
}
Expected: error CS1620: Argument 1 must be passed without the 'ref' keyword
Actual: error CS1620: Argument 1 must be passed with the 'in' keyword
Expected: error CS1620: Argument 1 must be passed without the 'ref' keyword
Actual: error CS1620: Argument 1 must be passed with the 'in' keyword