1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
// CS0122: `A.prop' is inaccessible due to its protection level // Line: 19 // Compiler options: -t:library class A { int i; int prop { set { i = value; } } } class B : A { void M () { prop = 2; } }